Crate fonts

source ยท

Modulesยง

Macrosยง

Structsยง

  • An index that refers to a byte offset in a text run. This could the middle of a glyph.
  • This data structure represents the various optional descriptors that can be applied to a @font-face rule in CSS. These are used to create a FontTemplate from the given font data used as the source of the @font-face rule. If values like weight, stretch, and style are not specified they are initialized based on the contents of the font itself.
  • The public interface to the font cache thread, used by per-thread FontContext instances (via the FontSource trait), and also by layout.
  • The FontContext represents the per-thread/thread state necessary for working with fonts. It is the public API used by the layout and paint code. It talks directly to the font cache thread where required.
  • 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.
  • This describes all the information needed to create font instance handles. It contains a unique FontTemplateData structure that is platform specific.
  • Describes how to select a font from a given family. This is very basic at the moment and needs to be expanded or refactored when we support more of the font styling parameters.
  • A list of font templates that make up a given font family.
  • GlyphEntry is a port of Geckoโ€™s CompressedGlyph scheme for storing glyph data compactly.
  • A single series of glyphs within a text run.
  • Stores the glyph data belonging to a text run.
  • Various options that control text shaping.

Enumsยง

Constantsยง

Traitsยง

Functionsยง

Type Aliasesยง