Accesing and modifying Glyph Class in Fontlab 5
Options

Andres Torresi
Posts: 25
I have a client with several fonts who have diferent glyph definitions. He set up that on Glyph properties panel, which have different options: Unassigned, Simple, Ligature, Mark and Component. As I understand, this is related to Glyph definition table (GDEF), but I'm not completely sure about how it works.

He needs to modify the «class» (this panel option) for many glyphs in many hebrew fonts and he is asking me to make a python script.
I'm not sure if there is a glyph atribute or font definition where I can change this.
Or maybe there is anyone who wants to do it and tell me how it works, so I learn something new.

He needs to modify the «class» (this panel option) for many glyphs in many hebrew fonts and he is asking me to make a python script.
I'm not sure if there is a glyph atribute or font definition where I can change this.
Or maybe there is anyone who wants to do it and tell me how it works, so I learn something new.
Thanks.
Tagged:
0
Comments
-
You can use the type attribute, i.e. glyph.type, to set and get the glyph’s GDEF class.
The values are straight forward Unassigned = 0, Simple = 1, Ligature = 2, Mark = 3, Component = 4.
Alternatively, you can use FDK’s GDEF definition. VOLT also has a way to define GDEF classes.2 -
Awesome. Thanks, Denis!0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 476 Type Design Critiques
- 555 Type Design Software
- 1.1K Type Design Technique & Theory
- 640 Type Business
- 831 Font Technology
- 29 Punchcutting
- 508 Typography
- 120 Type Education
- 313 Type History
- 75 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 533 Announcements
- 86 Events
- 110 Job Postings
- 167 Type Releases
- 169 Miscellaneous News
- 274 About TypeDrawers
- 53 TypeDrawers Announcements
- 119 Suggestions and Bug Reports