Skip to main content

Module ttf

Module ttf 

Source

Structs§

Tb
bounds-checked big-endian reads of one table (t16 / t32 of the assembly: -1 when the read would cross the table end; offsets are u32 and wrap like the 32-bit registers)
TtFont
a runtime font context (TrueType or CFF outlines)

Constants§

ERR_FAIL
ERR_HDR
ERR_IO
ERR_LIMIT
ERR_NOMEM
ERR_TRUNC
ERR_UNSUPPORTED
FILE_MAX
NAME_CAP
TFF_CBDT
TFF_COLR
TFF_LOCA_LONG
TFF_MACCMAP
TFF_SYMBOL
TFK_CFF
TFK_TTF
TT_AVAR
TT_CBDT
TT_CBLC
TT_CFF
TT_CFF2
TT_CMAP
TT_COLR
TT_COUNT
TT_CPAL
TT_FVAR
TT_GDEF
TT_GLYF
TT_GPOS
TT_GVAR
TT_HEAD
TT_HHEA
TT_HMTX
TT_HVAR
TT_KERN
TT_LOCA
TT_MAXP
TT_MVAR
TT_NAME
TT_OS2
TT_POST

Statics§

MAC_ROMAN
Mac OS Roman 0x80..0xFF -> Unicode

Functions§

face_count
font_face_count(data) -> faces / ERR_*
sfnt_name
sfnt_name(table, id) -> UTF-8 (empty = not found), at most cap - 1 bytes