A JavaScript TrueType font engine for modern browsers and Node.js.
ttf.js Demo - Glyph List
![ttf.js Demo - Glyph List](https://camo.githubusercontent.com/b3a19824629d5b5924738426863d6a545a98ea8aa30b954de750b7996a733280/687474703a2f2f796e616b616a696d612e6769746875622e636f6d2f7474662e6a732f696d616765732f64656d6f5f73637265656e5f7468756d622e706e67)
work in progress...
Implementation status of TrueType Tables
sfnt header
sfnt version | Implemented |
numTables | Implemented |
searchRange | Implemented |
entrySelector | Implemented |
rangeShift | Implemented |
Table Directory | Implemented |
cmap | Part Implemented |
glyf | Almost |
head | Almost |
hhea | - |
hmtx | - |
loca | Almost |
maxp | Almost |
name | - |
post | - |
OS/2 | - |
cvt | - |
EBDT | - |
EBLC | - |
EBSC | - |
fpgm | - |
gasp | - |
hdmx | - |
kern | - |
LTSH | - |
prep | - |
PCLT | - |
VDMX | - |
vhea | - |
vmtx | - |
- ttf.cmap.getGlyphIndex(charactor)
- Return glyph index array of the given charactor . The array's length equals to number of the font's cmap subtables.
- The param charactor only accept a single charactor, if you use multiple charactors , only return the result of the first charactor.
- This API is working in process , only support cmap format0 and part format4. You can try your font with this , if not support, contact me;