Expand description
CSS properties for fonts, such as font-family, font-size, font-weight, and font-style.
Structs§
- Font
Metrics - Font metrics structure containing all font-related measurements from the font file tables (head, hhea, and os/2 tables).
- FontRef
- FontRef is a reference-counted pointer to a parsed font. It holds a *const c_void that points to the actual parsed font data (typically a ParsedFont from the layout crate).
- Panose
- PANOSE classification values for font identification (10 bytes). See https://learn.microsoft.com/en-us/typography/opentype/spec/os2#panose
- Style
Font Family Vec - Style
Font Size - Represents a
font-sizeattribute
Enums§
- CssFont
Style Parse Error - CssFont
Style Parse Error Owned - CssFont
Weight Parse Error - CssFont
Weight Parse Error Owned - CssStyle
Font Family Parse Error - CssStyle
Font Family Parse Error Owned - CssStyle
Font Size Parse Error - CssStyle
Font Size Parse Error Owned - Option
Font Ref - Style
Font Family - Represents a
font-familyattribute - Style
Font Family VecDestructor - Style
Font Style - Represents the
font-styleproperty. - Style
Font Weight - Represents the
font-weightproperty.
Functions§
Type Aliases§
- Font
RefDestructor Callback Type - Callback type for FontRef destructor - must be extern “C” for FFI safety
- Style
Font Family VecDestructor Type