1#![doc = include_str!("../README.md")]
2
3pub mod annotated_string;
5mod ascii_breaks;
6pub mod bidi_level;
8mod break_leads;
9mod cluster_widths;
10mod coverage;
11pub mod decoration;
13mod ellipsis_at;
14pub mod font;
16mod font_fallback;
17pub mod font_family_resolver;
20pub mod font_feature;
22pub mod glyph_id;
24mod glyph_ink;
25pub mod glyph_outline;
27mod glyph_scratch;
28#[cfg(feature = "hyphenation")]
29pub mod hyphenator;
30mod index_range;
31pub mod itemizer;
33mod laid_glyphs;
34mod layout_body;
35pub mod layout_input;
37pub mod layout_options;
39pub mod line_box;
40mod line_breaker;
41mod line_hold;
42mod line_runs;
43mod line_text;
44pub mod paragraph;
46mod paragraph_intrinsics;
47mod paragraph_measures;
48mod plain_chars;
49mod plain_glyphs;
50mod plain_kerning;
51pub mod retired;
53pub mod script;
55mod script_lookups;
56mod shaped_glyphs;
57mod shaped_item;
58pub mod shaper;
60pub mod shaping_span;
62mod simple_glyf;
63pub mod style;
65pub mod synthesized_style;
67pub mod text_layout;
69pub mod text_layouter;
71pub mod typeface;
73pub mod unit;
75pub mod word_boundary;
77mod word_cache;
78mod word_split;
79
80pub use annotated_string::{
81 AnnotatedString, LinkAnnotation, LinkKey, RangeStyle, RenderString, SpanBoundaries,
82 StringAnnotation,
83};
84pub use bidi_level::BidiLevel;
85pub use decoration::{Shadow, TextDecoration};
86pub use font::{
87 FileBackedFontFamily, FontFamily, FontFile, FontStyle, FontSynthesis, FontWeight,
88 LoadedTypefacePath,
89};
90pub use font_family_resolver::{FontFamilyResolver, FontRequest};
91pub use font_feature::{FontFeature, FontFeatureSettings, font_feature_settings};
92pub use glyph_id::GlyphId;
93pub use glyph_outline::{GlyphOutline, OutlineSegment, OutlineTransform};
94#[cfg(feature = "hyphenation")]
95pub use hyphenator::{HyphenationError, Hyphenator};
96pub use itemizer::{Itemizer, TextItem};
97pub use layout_input::{LayoutInput, ParagraphLengths};
98pub use layout_options::{TextLayoutOptions, TextOptions, TextOverflow};
99pub use line_box::{FontExtent, LineBox, line_box, paragraph_line_box};
100pub use paragraph::{
101 Hyphens, LineBreak, ResolvedTextDirection, TextAlign, TextDirection, TextIndent,
102 resolve_text_direction,
103};
104pub use paragraph_intrinsics::ParagraphIntrinsics;
105pub use retired::Retired;
106pub use script::Script;
107pub use shaped_glyphs::{GlyphOffset, ShapedGlyph, ShapedGlyphs};
108pub use shaper::Shaper;
109pub use shaping_span::ShapingSpan;
110pub use style::{
111 BaselineShift, LineHeightAlignment, LineHeightMode, LineHeightStyle, LineHeightTrim,
112 LocaleList, ParagraphStyle, PlatformParagraphStyle, PlatformSpanStyle, PlatformTextStyle,
113 SpanStyle, TextDrawStyle, TextGeometricTransform, TextMotion, TextShaping, TextStyle,
114};
115pub use synthesized_style::SynthesizedStyle;
116pub use text_layout::{CaretDirection, GlyphRun, PositionedGlyph, TextLayout};
117pub use text_layouter::TextLayouter;
118pub use typeface::{
119 DecorationMetrics, FontBytes, FontFamilyKey, LineMetrics, Synthesis, Typeface, TypefaceError,
120};
121pub use unit::TextUnit;
122pub use word_boundary::word_boundary;