1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Text components and utilities for the `WaterUI` framework.
//!
//! This crate provides comprehensive text rendering and formatting capabilities,
//! including fonts, attributed text, and internationalization support.
//!
//! Note: The `Link` component has been moved to the main `waterui` crate
//! where it can use `robius-open` for URL handling.
extern crate alloc;
/// The one font collection an application shapes and typesets with.
/// Font utilities and definitions.
/// Syntax highlighting support.
/// Styled text support for rich text formatting.
/// Core text component.
pub use ;
pub use FontCollection;
pub use StyledStr;
pub use ;
/// Installs the system's fonts as the application's font collection, for a host
/// that owns no font stack of its own.
///
/// The native backends — Apple, Android, GTK — draw text with the platform's
/// own text engine and never build a `parley` collection, so a component that
/// typesets text itself (a formula, a canvas, a vector map) has no host
/// collection to share. This gives them one, discovered once for the
/// application rather than once per view.
///
/// It installs nothing at all when this build has no collection to install,
/// which is exactly when nothing in the dependency graph could read one: the
/// `system-fonts` feature is turned on by the components that shape text
/// themselves, so a build without them carries neither the collection type nor
/// the font stack behind it.
///
/// A collection already installed is left alone, so a host that owns its own
/// font stack may install that one and call this too, in either order.