-
Notifications
You must be signed in to change notification settings - Fork 842
Add OVERLAP flag to simple/compound glyphs, fix interpl. error #352
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
Conversation
Decreased Bold weight, added anchors to lowercase Greek, updated GDEF feature builder. Added font linking to STAT.
Reduced weight of bold extreme for better alignment with Regular. Resolved some introduced bugs in hinting and glyph widths.
…Terminal" This reverts commit 91ce4ee.
This reverts commit 25dc61a.
Updating code for the build process and adding in a separate hinting file for the PL glyphs.
Updates build script to include madig's modifications, plus adds static TTF export and autohinting using ttfautohint (if available). Also updated / renamed the Nerdfonts PL file.
- Adjusted box drawing characters for better alignment to the letters - Added anchors to all alphabetic characters (also brevecomb-cy which was missing them) - added a fi and fl ligature (and decompose them so they never show up :) ) - improved weight of horncomb (lowercase) in bold
Changing contour order for Extralight to resolve interpolation error
|
Should we be holding off on this because of the comment here:? googlefonts/ufo2ft#402 |
|
I don’t think so. The only downside to implementing the flag everywhere is that freetype will have slightly slower rendering speed. And if freetype eventually changes their approach to this, we can remove the flag implementation entirely. Or if ufo2ft implements it in a smart way, we can switch to that. Either way it benefits users now to have the flag set. |
Summary of the Pull Request
This PR modifies the build script to add "OVERLAP_SIMPLE" to normal glyphs and "OVERLAP_COMPOUND" to component glyphs.
PR Checklist
Detailed Description of the Pull Request / Additional comments
Under FreeType, "overlapping contours can produce pixels with inflated coverage because FreeType normally integrates the coverage. To mitigate the artefacts, oversampling is necessary (increase resolution 4x4 and average the results)"
(quote from here). FreeType relies on the "OVERLAP_SIMPLE" and "OVERLAP_COMPOUND" flags to be set to know when this oversampling should take place.
At current, Cascadia does not contain either of these two flags. This fix will add one or the other to every glyph in Cascadia (depending on type of glyph), thus resolving the issue. Once the ufo2ft library adds functionality to address this issue, the build script modification can be removed.
The addition of these flags has no impact on the behavior of the font in Mac or Windows environments.
Before (if applicable) and After Images of the Character(s)
[Before] Note the bottom right corner of the /u and the middle left of the /four:

[After] Displaying properly:

Note that this fix will only work on the cutting edge version of FreeType (to be 2.10.3). The current 2.10.2 stable version does not respect the flags.
For the interpolation error, before:

After:

Validation Steps Performed
Test font reviewed by the bug reporter and found to resolve the problem.
--<rendering checked in FontGoggles