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.
Members
family_name
fn family_name(self: &Self) -> String
Gets the family name of the font.
weight
fn weight(self: &Self) -> FontWeight
Gets the designed weight of the font.
style
fn style(self: &Self) -> FontStyle
Gets the style of the font.
stretch
fn stretch(self: &Self) -> FontStretch
Gets the designed stretch of the font.
font_simulations
fn font_simulations(self: &Self) -> FontSimulations
Gets the algorithmic style simulations applied to this typeface.
try_get_stream
fn try_get_stream(self: &Self) -> Option<Box<dyn Read>>
Attempts to obtain a stream over the raw font data.
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).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.