pub struct FontPolicy {
pub preferred_families: Vec<String>,
pub default_family: String,
pub allow_embedded_fonts: bool,
pub synthetic_bold: bool,
pub synthetic_italic: bool,
}Expand description
Fallback policy for font matching.
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.
Implementations§
Source§impl FontPolicy
impl FontPolicy
Sourcepub fn serif_default() -> Self
pub fn serif_default() -> Self
Serif-first policy.
Trait Implementations§
Source§impl Clone for FontPolicy
impl Clone for FontPolicy
Source§fn clone(&self) -> FontPolicy
fn clone(&self) -> FontPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontPolicy
impl Debug for FontPolicy
Source§impl Default for FontPolicy
impl Default for FontPolicy
Source§impl PartialEq for FontPolicy
impl PartialEq for FontPolicy
impl Eq for FontPolicy
impl StructuralPartialEq for FontPolicy
Auto Trait Implementations§
impl Freeze for FontPolicy
impl RefUnwindSafe for FontPolicy
impl Send for FontPolicy
impl Sync for FontPolicy
impl Unpin for FontPolicy
impl UnsafeUnpin for FontPolicy
impl UnwindSafe for FontPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more