-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix glyph rendering, handle multiple cmap #51
base: master
Are you sure you want to change the base?
Conversation
render some glyph (eg number 2, century.ttf) is not correct with the old code. I fixed it in the Typography lib, and contribute back here. I rename some vars, just try to keep it sync with the Typography
some fonts, eg Century.ttf, have multiple cmap table, in this case, we must select the most proper one (else this will give an error). So I added PlatformId and EncodingId to the cmap CharacterMap entry. Here, I test only with Windows font.
I try to keep sync with the Typography, for future contribution :)
@vidstige, |
Thanks! Don't know what's up with the appveyor build... 🤔 Thanks so much for fixing this bug. Will look through code when I get time over. |
Master is also failing, so don't worry too much over that. @tocsoft set this up initially. At least the travis build is passing 👌 |
@vidstige , |
@prepare no, I don't. Don't even have VS2017 😬 If you have the changes, feel free to commit. Otherwise I'll might do it whenever I get some time over, if you keep reminding me. 😊 |
The old version has bugs. It can't render 'Century.ttf' font.
so I fixed it. Descriptions are in each node 01-05
pic 1: '2' glyph, Century font, Gdi+ version
pic 2: Century font, 240 pt, Notepad [1] vs Typography [2], see red rectangle, this is a characteristic of this glyph (starts with OFF-CURVE point and ends with OFF-CURVE point)
@vidstige, It would be great if you upgrade the project to VS2017 :)