Skip to main content

Module glyph

Module glyph 

Source
Expand description

Glyph representations: outlines, bitmaps and color.

A font can contain a glyph in several forms. GlyphSource identifies the tables that provide them, and GlyphSourceOrder sets which ones to prefer. Collections and glyphs report a narrower type, outline::OutlineSource or bitmap::BitmapSource, and each converts into a GlyphSource.

The collections outline::OutlineGlyphs and bitmap::BitmapStrikes resolve an order against a font once, and color::ColorGlyphs reads COLR. Glyph metrics use an order to measure ink.

Modules§

bitmap
Embedded bitmap glyphs.
color
Color glyphs.
outline
Scalable glyph outlines.

Structs§

GlyphSourceOrder
An ordered list of glyph sources, most preferred first.

Enums§

GlyphSource
A table that can provide a glyph.