项目
在 GitHub 查看 
ynakajima/ttf.js
关于
JavaScript font library for Node.js and browser.
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ttf.js
A JavaScript TrueType font engine for modern browsers and Node.js.
Demo
Development Status
work in progress...
Implementation status of TrueType Tables
sfnt header
| sfnt version | Implemented |
|---|---|
| numTables | Implemented |
| searchRange | Implemented |
| entrySelector | Implemented |
| rangeShift | Implemented |
Table Directory
| Table Directory | Implemented |
|---|
Required Tables
| cmap | Part Implemented |
|---|---|
| glyf | Almost |
| head | Almost |
| hhea | - |
| hmtx | - |
| loca | Almost |
| maxp | Almost |
| name | - |
| post | - |
| OS/2 | - |
Optional Tables
| cvt | - |
|---|---|
| EBDT | - |
| EBLC | - |
| EBSC | - |
| fpgm | - |
| gasp | - |
| hdmx | - |
| kern | - |
| LTSH | - |
| prep | - |
| PCLT | - |
| VDMX | - |
| vhea | - |
| vmtx | - |
API
- 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;
TrueType Specifications
- Microsoft Typography - Features of TrueType and OpenType (Microsoft)
- TrueType Reference Manual (Apple)
探索相关项目
加载中…