프로젝트
GitHub에서 보기 
ynakajima/ttf.js
소개
JavaScript font library for Node.js and browser.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalttf.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)
관련 프로젝트 살펴보기
불러오는 중…