Skip to main content

Module font

Module font 

Source

StructsΒ§

CachedShapeData πŸ”’
FallbackKey
Font
FontBaseline
FontFamilyDescriptor
The font family parameters for font selection.
FontGroup
A FontGroup is a prioritised list of fonts for a given set of font styles. It is used by TextRun to 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.
FontGroupFamily πŸ”’
A FontGroupFamily is a single font family in a FontGroup. It corresponds to one of the families listed in the font-family CSS property. The corresponding font data is lazy-loaded, only if actually needed. A single FontGroupFamily can have multiple fonts, in the case that individual fonts only cover part of the Unicode range.
FontGroupFamilyTemplate πŸ”’
A FontGroupFamily can have multiple associated FontTemplates if it is a β€œcomposite face”, meaning that it is defined by multiple @font-face declarations which vary only by their unicode-range descriptors. In this case, font selection will select a single member that contains the necessary unicode character. Unicode ranges are specified by the FontGroupFamilyTemplate::template member.
FontMetrics
FontRef
ShapeCacheEntry πŸ”’
An entry in the shape cache.
ShapingFlags
ShapingOptions
Various options that control text shaping.

EnumsΒ§

FontSearchScope
The scope within which we will look for a font.

ConstantsΒ§

AFRC πŸ”’
BASE πŸ”’
CALT πŸ”’
CBDT πŸ”’
CLIG πŸ”’
COLR πŸ”’
DLIG πŸ”’
FRAC πŸ”’
FWID πŸ”’
GPOS πŸ”’
GSUB πŸ”’
HLIG πŸ”’
JP04 πŸ”’
JP78 πŸ”’
JP83 πŸ”’
JP90 πŸ”’
KERN πŸ”’
LAST_RESORT_GLYPH_ADVANCE
LIGA πŸ”’
LNUM πŸ”’
ONUM πŸ”’
ORDN πŸ”’
PNUM πŸ”’
PWID πŸ”’
RUBY πŸ”’
SBIX πŸ”’
SMPL πŸ”’
SUBS πŸ”’
SUPS πŸ”’
TNUM πŸ”’
TRAD πŸ”’
ZERO πŸ”’

StaticsΒ§

TEXT_SHAPING_PERFORMANCE_COUNTER πŸ”’
Nanoseconds spent shaping text across all layout threads.

TraitsΒ§

FontTableMethods πŸ”’
PlatformFontMethods

FunctionsΒ§

map_platform_values_to_style_values πŸ”’
Given a mapping array mapping and 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Β§

FractionalPixel πŸ”’