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: StringFinal fallback family.
allow_embedded_fonts: boolWhether embedded fonts are allowed for matching.
synthetic_bold: boolWhether synthetic bold is allowed.
synthetic_italic: boolWhether synthetic italic is allowed.