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
- 806 Font Technology
- 1.1K Technique and Theory
- 623 Type Business
- 446 Type Design Critiques
- 543 Type Design Software
- 30 Punchcutting
- 137 Lettering and Calligraphy
- 84 Technique and Theory
- 53 Lettering Critiques
- 489 Typography
- 304 History of Typography
- 115 Education
- 70 Resources
- 500 Announcements
- 80 Events
- 105 Job Postings
- 149 Type Releases
- 165 Miscellaneous News
- 271 About TypeDrawers
- 53 TypeDrawers Announcements
- 117 Suggestions and Bug Reports