1pub mod annotated_string;
2pub mod decoration;
3pub mod draw_scope_text;
4pub mod font;
5pub mod layout_options;
6pub mod line_box;
7pub mod measure;
8pub mod paragraph;
9pub mod style;
10pub mod unit;
11
12pub use annotated_string::{
13 AnnotatedString, LinkAnnotation, LinkKey, RangeStyle, RenderString, StringAnnotation,
14 shared_plain_annotated_string,
15};
16pub use decoration::{Shadow, TextDecoration};
17pub use draw_scope_text::{AppContextTextMeasurer, draw_style_line_box, text_style_for_draw_style};
18pub use font::{
19 FileBackedFontFamily, FontFamily, FontFile, FontStyle, FontSynthesis, FontWeight,
20 LoadedTypefacePath,
21};
22pub use layout_options::{TextLayoutOptions, TextOptions, TextOverflow};
23pub use line_box::{FontExtent, LineBox, line_box};
24pub use measure::{
25 PreparedTextLayout, TextLinePrefixWidths, TextMeasurer, TextMetrics, first_baseline,
26 get_cursor_x_for_offset, get_offset_for_position, glyph_line_box, layout_text, measure_text,
27 measure_text_for_node, measure_text_with_options, measure_text_with_options_for_node,
28 offset_for_position_wrapped, prepare_text_layout, prepare_text_layout_for_node,
29 set_text_measurer, wrapped_line_ranges,
30};
31pub use paragraph::{
32 Hyphens, LineBreak, ResolvedTextDirection, TextAlign, TextDirection, TextIndent,
33 resolve_text_direction,
34};
35pub use style::{
36 BaselineShift, LineHeightAlignment, LineHeightMode, LineHeightStyle, LineHeightTrim,
37 LocaleList, ParagraphStyle, PlatformParagraphStyle, PlatformSpanStyle, PlatformTextStyle,
38 SpanStyle, TextDrawStyle, TextGeometricTransform, TextMotion, TextShaping, TextStyle,
39};
40pub use unit::TextUnit;
41
42pub use crate::text_layout_result::TextLayoutResult;