What is 'function 6 in FPGM' in FontForge?
user9812
Posts: 7
I'm trying to follow the process of hinting font in FontForge, described here: https://github.com/fontforge/fontforge/wiki/How-TT-Hinting-Works
Inside the 'very basic hinting' section is a list of errors that may occur, with a suggestion on how to fix each. I'm looking at point 4: 'Stems aren't aligned to pixel grid! (this problem is visible only in antialiased mode)'. Setting function 6 to always return 0 is suggsted. Problem is, I don't know what that is referring to or how to set it to always equal 0. There is literally no other reference to function 6 that I can find that provides more information.
Does anyone know what 'function 6 in FPGM' is and how to modify it?
Inside the 'very basic hinting' section is a list of errors that may occur, with a suggestion on how to fix each. I'm looking at point 4: 'Stems aren't aligned to pixel grid! (this problem is visible only in antialiased mode)'. Setting function 6 to always return 0 is suggsted. Problem is, I don't know what that is referring to or how to set it to always equal 0. There is literally no other reference to function 6 that I can find that provides more information.
Does anyone know what 'function 6 in FPGM' is and how to modify it?
Tagged:
0
Comments
-
I don't particularly want to read that doc to that detail (I'll leave that to the fontforge people lurking here) so I'll just guess.The truetype spec allows font developers to create user-defined re-usable subroutines, numbered 0-255 I think, and stored in the FPGM table. The instruction to create one is FDEF (short for "function definition").
In hand-waving pseudo code, you do something like
FDEF 6 {
return 0;
}
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