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
- 46 Introductions
- 3.9K Typeface Design
- 485 Type Design Critiques
- 560 Type Design Software
- 1.1K Type Design Technique & Theory
- 651 Type Business
- 848 Font Technology
- 29 Punchcutting
- 519 Typography
- 119 Type Education
- 323 Type History
- 77 Type Resources
- 110 Lettering and Calligraphy
- 31 Lettering Critiques
- 79 Lettering Technique & Theory
- 548 Announcements
- 90 Events
- 114 Job Postings
- 170 Type Releases
- 173 Miscellaneous News
- 275 About TypeDrawers
- 53 TypeDrawers Announcements
- 120 Suggestions and Bug Reports