Skip to main content

register_custom_font_variant

Function register_custom_font_variant 

Source
pub fn register_custom_font_variant(
    family: &str,
    data: Vec<u8>,
    weight: i32,
    italic: bool,
)
Expand description

Register a custom font’s bytes under family, tagged with the (weight, italic) style Skia reports for the parsed file. A no-op if that exact (family, weight, italic) combination is already registered.