Module gfx::font

source ·

Structs

  • FontDescriptor describes the parameters of a Font. It represents rendering a given font template at a particular size, with a particular font-variant-caps applied, etc. This contrasts with FontTemplateDescriptor in that the latter represents only the parameters inherent in the font data (weight, stretch, etc.).
  • The font family parameters for font selection.
  • 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.
  • 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.
  • An entry in the shape cache.
  • Various options that control text shaping.

Enums

Constants

Statics

Traits

Functions

Type Aliases