Skip to main content

Module font

Module font 

Source
Expand description

Font sourcing layer: provider trait, data types, and the bundled default.

Re-exports§

pub use local::LocalFontEntry;
pub use local::scan_font_dirs;

Modules§

embedded
Compile-time bytes of the bundled Noto fonts.
local
Local/system font scanning.

Structs§

BytesFontProvider
In-memory font registry. Register bundled and project fonts up front; this implementation never scans the system.
FontData
Resolved font bytes ready for shaping or outlining. Cheap to clone (Arc).

Enums§

FontSource
Where a resolved font face came from, in resolution-priority order.
FontStyle
The style variant of a font face.

Traits§

FontProvider
Resolve font bytes by family + weight + style, or by stable id.

Functions§

default_provider
Build a BytesFontProvider preloaded with the bundled default fonts.