TtfReader
12 Sep 20251 minute to read
Properties
bIsLocaShort boolean
Indicates whether loca table is short.
Methods
convertString
Reconverts string to be in proper format saved into PDF file.
Returns string
getAllGlyphs
Gets all glyphs.
Returns TtfGlyphInfo[]
getCharWidth
Gets char width.
Returns number
getGlyph
Gets glyph’s info by char code.
Returns TtfGlyphInfo
getGlyphChars
Gets hash table with chars indexed by glyph index.
Returns Dictionary
setOffset
Sets position value of font data.
Returns void