Skip to main content

cranpose_ui/text/
mod.rs

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