#[repr(C)]pub struct FontConfig {Show 13 fields
pub custom_fonts: Vec<CustomFont>,
pub default_sans_serif: String,
pub default_serif: String,
pub default_monospace: String,
pub default_cursive: String,
pub default_fantasy: String,
pub minimum_font_size: u32,
pub default_font_size: u32,
pub default_fixed_font_size: u32,
pub use_system_fonts: bool,
pub enable_web_fonts: bool,
pub embed_fonts: bool,
pub subset_fonts: bool,
}Expand description
Font configuration
Fields§
§custom_fonts: Vec<CustomFont>Custom font files to load (path -> family name mapping)
default_sans_serif: StringDefault font family for sans-serif
default_serif: StringDefault font family for serif
default_monospace: StringDefault font family for monospace
default_cursive: StringDefault font family for cursive
default_fantasy: StringDefault font family for fantasy
minimum_font_size: u32Minimum font size in pixels
default_font_size: u32Default font size in pixels
default_fixed_font_size: u32Default fixed font size in pixels
use_system_fonts: boolEnable system fonts
enable_web_fonts: boolEnable web fonts (@font-face)
embed_fonts: boolEmbed fonts in PDF
subset_fonts: boolSubset fonts to reduce PDF size
Trait Implementations§
Source§impl Clone for FontConfig
impl Clone for FontConfig
Source§impl Debug for FontConfig
impl Debug for FontConfig
Source§impl Default for FontConfig
impl Default for FontConfig
Source§impl ExternType for FontConfig
impl ExternType for FontConfig
Auto Trait Implementations§
impl Freeze for FontConfig
impl RefUnwindSafe for FontConfig
impl Send for FontConfig
impl Sync for FontConfig
impl Unpin for FontConfig
impl UnwindSafe for FontConfig
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