Skip to main content

FontFallbackPolicy

Type Alias FontFallbackPolicy 

Source
pub type FontFallbackPolicy = FontPolicy;
Expand description

First-class public fallback policy alias.

Aliased Type§

pub struct FontFallbackPolicy {
    pub preferred_families: Vec<String>,
    pub default_family: String,
    pub allow_embedded_fonts: bool,
    pub synthetic_bold: bool,
    pub synthetic_italic: bool,
}

Fields§

§preferred_families: Vec<String>

Preferred family order used when style stack has no embedded match.

§default_family: String

Final fallback family.

§allow_embedded_fonts: bool

Whether embedded fonts are allowed for matching.

§synthetic_bold: bool

Whether synthetic bold is allowed.

§synthetic_italic: bool

Whether synthetic italic is allowed.