OTS parsing error: Unable to instantiate font face from font data
shailandica
Posts: 1
I have this data going into computing my [`cmap`](https://docs.microsoft.com/en-us/typography/opentype/spec/cmap) table: file 1.txt.
The overall font file that gets generated is this: file 2.txt
Wondering if in that first JSON, everything looks good / conforms to the spec. I am essentially just concatenating the decimal values from that JSON and then putting it into a Buffer and writing it to the file, so if that is accurate the final result should be accurate.
Not sure if the 255 values are correct yet, but otherwise I can't see anything that would make it incorrect yet. Wondering if you can find anything.
If I make a slight change in certain places, then I get:
OTS parsing error: cmap: Failed to parse table
But otherwise get:
OTS parsing error: cmap: Failed to serialize table
Not sure which one is closer or further from working.
If I change these two:
platformID: { type: 'USHORT', value: 3 },
encodingID: { type: 'USHORT', value: 1 },
I get:
OTS parsing error: Unable to instantiate font face from font data.
0
Comments
-
I recommend posting this on the OTS github issue tracker0
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 803 Font Technology
- 1K Technique and Theory
- 622 Type Business
- 444 Type Design Critiques
- 542 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 485 Typography
- 303 History of Typography
- 114 Education
- 68 Resources
- 499 Announcements
- 80 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 270 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports