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