FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IPlatformTypeface

    trait · ferroui-base · v0.5.0

    trait IPlatformTypeface: IFontMemory
    

    Represents a platform-specific typeface: a font face as loaded by the font backend, exposing its identity and raw table data.

    View source

    Members

    family_name

    fn family_name(self: &Self) -> String
    

    Gets the family name of the font.

    Source

    weight

    fn weight(self: &Self) -> FontWeight
    

    Gets the designed weight of the font.

    Source

    style

    fn style(self: &Self) -> FontStyle
    

    Gets the style of the font.

    Source

    stretch

    fn stretch(self: &Self) -> FontStretch
    

    Gets the designed stretch of the font.

    Source

    font_simulations

    fn font_simulations(self: &Self) -> FontSimulations
    

    Gets the algorithmic style simulations applied to this typeface.

    Source

    try_get_stream

    fn try_get_stream(self: &Self) -> Option<Box<dyn Read>>
    

    Attempts to obtain a stream over the raw font data.

    Source

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    Lets the backend that created the typeface recover its concrete type (C#'s type test PlatformTypeface is SkiaTypeface).

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.