-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we retain untouched ttf hints? #12
Comments
Funny you should mention that. Xgridfit (the backend for Ygt) has a thing called "merge mode," which adds hints to a font that already has them, appending new instructions after the ones already in the font, new control program code after the existing code, and new CVs after the existing ones. It's meant for exactly the situation where ttfautohint does a good job in general, but you want to replace certain glyph programs that aren't cutting it. Sooner or later I'll implement "merge mode" from within Ygt, but even now you can use it. Just hint the glyphs you want to hint and save in a YAML file (or copy the file
Xgridfit will produce a file
Xgridfit will produce a I should mention that Ygt can't edit glyph programs added by ttfautohint: their ways of doing things are just too different. Ygt can only replace glyph programs. I'll make this much easier when I can. In the meantime, the procedure I've outlined should work. |
Thank you. |
This is done now. See the section "Merge Mode" in YGT-Intro.pdf. If you can, try out the new binary releases on this site: one for the M1 Mac and the other for x86-64 Windows machines. Otherwise, the new version will be on PyPi later today or tomorrow. |
Would it be possible to export to TTF retaining existing TTF hints, overwriting only the glyph hints that have been touched by ygt? I'm thinking of a workflow that allows me to use ttfauothint and only manually hint the glyphs that need improvement.
The text was updated successfully, but these errors were encountered: