StructsΒ§
- Cached
Shape πData - Fallback
Key - Font
- Font
Baseline - Font
Family Descriptor - The font family parameters for font selection.
- Font
Group - A
FontGroupis a prioritised list of fonts for a given set of font styles. It is used byTextRunto decide which font to render a character with. If none of the fonts listed in the styles are suitable, a fallback font may be used. - Font
Group πFamily - A
FontGroupFamilyis a single font family in aFontGroup. It corresponds to one of the families listed in thefont-familyCSS property. The corresponding font data is lazy-loaded, only if actually needed. A singleFontGroupFamilycan have multiple fonts, in the case that individual fonts only cover part of the Unicode range. - Font
Group πFamily Template - A
FontGroupFamilycan have multiple associatedFontTemplates if it is a βcomposite faceβ, meaning that it is defined by multiple@font-facedeclarations which vary only by theirunicode-rangedescriptors. In this case, font selection will select a single member that contains the necessary unicode character. Unicode ranges are specified by theFontGroupFamilyTemplate::templatemember. - Font
Metrics - FontRef
- Shape
Cache πEntry - An entry in the shape cache.
- Shaping
Flags - Shaping
Options - Various options that control text shaping.
EnumsΒ§
- Font
Search Scope - The scope within which we will look for a font.
ConstantsΒ§
- BASE π
- CBDT π
- COLR π
- GPOS π
- GSUB π
- KERN π
- LAST_
RESORT_ GLYPH_ ADVANCE - LIGA π
- SBIX π
StaticsΒ§
- TEXT_
SHAPING_ πPERFORMANCE_ COUNTER - Nanoseconds spent shaping text across all layout threads.
TraitsΒ§
FunctionsΒ§
- map_
platform_ πvalues_ to_ style_ values - Given a mapping array
mappingand a value, map that value onto the value specified by the array. For instance, for FontConfig values of weights, we would map these onto the CSS [0..1000] range by creating an array as below. Values that fall between two mapped values, will be adjusted by the weighted mean.
Type AliasesΒ§
- Fractional
Pixel π