Module glyph

Source
Expand description

Processing and drawing glyphs.

Structsยง

BitmapGlyph
A glyph defined by a bitmap.
ColorGlyph
A glyph defined by a COLR glyph description.
Glyph
Positioned glyph.
GlyphRun ๐Ÿ”’
A sequence of glyphs with shared rendering properties.
GlyphRunBuilder
A builder for configuring and drawing glyphs.
OutlineGlyph
A glyph defined by a path (its outline) and a local transform.
OutlinePath ๐Ÿ”’
PreparedGlyph
A simplified representation of a glyph, prepared for easy rendering.
PreparedGlyphRun ๐Ÿ”’

Enumsยง

GlyphType
A type of glyph.
Style
Rendering style for glyphs.

Constantsยง

HINTING_OPTIONS ๐Ÿ”’

Traitsยง

GlyphRenderer
Trait for types that can render glyphs.

Functionsยง

prepare_bitmap_glyph ๐Ÿ”’
prepare_colr_glyph ๐Ÿ”’
prepare_glyph_run ๐Ÿ”’
Prepare a glyph run for rendering.
prepare_outline_glyph ๐Ÿ”’

Type Aliasesยง

NormalizedCoord
A normalized variation coordinate (for variable fonts) in 2.14 fixed point format.