pub struct FontPack {
pub proportional: Vec<NamedFont>,
pub monospace: Vec<NamedFont>,
pub display: Vec<NamedFont>,
pub icons: Vec<NamedFont>,
}Expand description
A collection of fonts grouped by family.
The first font in each Vec is the primary face — the one the backend
installs as the default for that family. Subsequent fonts act as
fallbacks (e.g. for missing glyph ranges).
Fields§
§proportional: Vec<NamedFont>Proportional / sans-serif faces. The first one becomes the default proportional font.
monospace: Vec<NamedFont>Monospaced faces. The first one becomes the default monospace font.
display: Vec<NamedFont>Display / serif faces (Fraunces / …). The first one is exposed by the
backend under the family name "display" so widgets can reach it via
FontFamilyHint::Display.
When empty, the backend aliases "display" to the proportional family.
icons: Vec<NamedFont>Icon faces (Lucide / Phosphor / …). The first one is exposed by the
backend under the family name "icons" so widgets can reach it via
FontFamilyHint::Icons.