Open StLyn4 opened 1 year ago
This PR also contains the changes contained in #305 so that you can accept smaller changes while rejecting this PR (if you wish to do so).
At the moment, the library ignores the useTypoMetrics flag, which can lead to strange metrics in some cases. This branch solves this problem using the same algorithm as FreeType (https://gitlab.freedesktop.org/freetype/freetype/-/blob/4d8db130ea4342317581bab65fc96365ce806b77/src/sfnt/sfobjs.c#L1310).
useTypoMetrics
This PR also contains the changes contained in #305 so that you can accept smaller changes while rejecting this PR (if you wish to do so).
At the moment, the library ignores the
useTypoMetrics
flag, which can lead to strange metrics in some cases. This branch solves this problem using the same algorithm as FreeType (https://gitlab.freedesktop.org/freetype/freetype/-/blob/4d8db130ea4342317581bab65fc96365ce806b77/src/sfnt/sfobjs.c#L1310).