Expand description
Tables parsed once for a font and kept.
A parsed table borrows the bytes it came from, so it cannot simply be
stored beside them. Yoke makes that expressible by holding the parsed
value together with the tables it borrows, behind an Arc that outlives
both however they are dropped.
Every table gets its own cell, so reading one never drags in another.
That matters for glyf and loca, which outlines and metrics in both
directions all read, and for gvar, which is typically about half a
variable font and must not be read to answer what another table can.
StructsΒ§
- Cbdt
Tables π - Color bitmaps in
CBDT, with theCBLCthat locates them. - Cff2
Font π - Charstring outlines from the
CFF2table. - CffFont π
- Charstring outlines from the
CFFtable. - Colr
Tables π - The
COLRtable and the variation tables its paints use. - Cpal
Table π - The color palettes in
CPAL. - Ebdt
Tables π - Monochrome and grayscale bitmaps in
EBDT, with theEBLCthat locates them. - Glyf
Loca π - The outline tables.
- Gvar
Table π - The table that varies
glyfoutlines. - Hvar
Table π - The table of horizontal metric variations.
- Metrics
Table π - The glyph metrics of one direction.
- Sbix
Table π - PNG bitmaps in
sbix. - Table
Cache π - A parsed table held beside the tables it borrows.
- Vorg
Table π - The table of glyph vertical origins.
- Vvar
Table π - The table of vertical metric variations.
FunctionsΒ§
- units_
per_ πem - Returns the design units per em that the fontβs metrics use.