Improve autohinting on all fonts, not just ttf #160
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change significantly improves font clarity for eot files on windows XP (GDI ClearType) and brings minor improvements in windows 7+ (DirectWrite ClearType) by enabling windows compatibility mode on ttfautohint and by moving the ttfautohint before any other fonts are generated from the original ttf, specifically eot and woff. This also has the benefit of adding type hinting to woff files which are used in windows chrome browsers, notorious for pixelated glyphs. You should see a marked improvement here as well.
Some downsides to adding type hinting to these file types is that it will increase file size. However, due to the small size of fonts anyway I think this is a worthy tradeoff. A test font collection of mine including 110 glyphs increased eot from 20k to 35k uncompressed and woff from 12k to 20k uncompressed. svg and ttf file sizes are not impacted.