A way to set or unset useTypoMetrics for icon-fonts
Malolan-Balaji opened this issue · 1 comments
#15 Feature request
Feature description
A way to toggle OS/2 fsSelection useTypoMetrics.
Since using TypoMetrics is strongly suggested for windows apps for calculating ascent and descent. and by default this is turned off. To turn it on we need to manually set the 7th bit in os2.fsSelection attribute (uint16 type)
https://docs.microsoft.com/en-us/typography/opentype/spec/os2#fsselection
https://glyphsapp.com/tutorials/vertical-metrics
Use cases
If set, it is strongly recommended that applications use OS/2.sTypoAscender - OS/2.sTypoDescender + OS/2.sTypoLineGap as the default line spacing for this font.
This'll fix issues where font-icons are properly rendered in Mac/Linux but not in windows
- I will/have implement the feature
closing this issue as the fix is better made in svg2ttf repo