OpenType Debugging Hell...
André G. Isaak
Posts: 634
So I just spent many hours trying to figure out why I was getting a fatal error when trying to compile what should have been relatively simple OpenType code in FontLab 5. Usually FontLab at least gives you a hint with a line number, but no such luck in this case.
I double-checked every semicolon, every set of brackets, etc. until I was completely dyslexic.
I eventually stumbled upon the error, and I’m rather surprised that I did because it was one I would never have thought of: I’d given the glyph at uni2316 the working name “position”, which the compiler was interpreting as a command rather than a glyph name. Of course, like most normal people I normally use ‘pos’ rather than ‘position’ and was surprised that I even remembered that this was a reserved word, particularly given that this only showed up in a class definition rather than in the code panel itself.
Does anyone know if there is a comprehensive list of reserved words used by AFDKO/FontLab? I’ve been unable to find one.
I double-checked every semicolon, every set of brackets, etc. until I was completely dyslexic.
I eventually stumbled upon the error, and I’m rather surprised that I did because it was one I would never have thought of: I’d given the glyph at uni2316 the working name “position”, which the compiler was interpreting as a command rather than a glyph name. Of course, like most normal people I normally use ‘pos’ rather than ‘position’ and was surprised that I even remembered that this was a reserved word, particularly given that this only showed up in a class definition rather than in the code panel itself.
Does anyone know if there is a comprehensive list of reserved words used by AFDKO/FontLab? I’ve been unable to find one.
1
Comments
-
¡Gracias!
I'd even scanned through that very same document looking for the term 'reserved'. Apparently I'm not very observant.
0 -
Here is a slightly prettier version, with CSS. https://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
But unfortunately, Adobe has not maintained it at the latest document version. Latest is 1.21 (George’s link). This one is v 1.19.
0 -
I don't think it is there, but in my mind keyword would carry the same meaning.
0 -
I don't think it is there, but in my mind keyword would carry the same meaning.
Quite right, but my browser’s search function isn’t quite that clever.0
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