Skip to main content

Crate waterui_text

Crate waterui_text 

Source
Expand description

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.

Re-exports§

pub use code::Code;
pub use code::CodeConfig;
pub use code::OnCopied;
pub use code::code;
pub use styled::StyledStr;
pub use text::Formatter;
pub use text::IntoText;
pub use text::Text;
pub use text::TextConfig;
pub use text::text;

Modules§

code
A fenced code block: a header naming the language, a copy button, and the highlighted source.
font
Font utilities and definitions. Font configuration and the two-layer typography system.
highlight
Syntax highlighting support.
styled
Styled text support for rich text formatting.
text
Core text component.

Functions§

install_system_font_collection
Installs the system’s fonts as the application’s font collection, for a host that owns no font stack of its own.