Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

fix glyph rendering, handle multiple cmap #51

wants to merge 5 commits into from

Conversation

prepare
Copy link
Contributor

@prepare prepare commented Apr 14, 2017

The old version has bugs. It can't render 'Century.ttf' font.
so I fixed it. Descriptions are in each node 01-05

test_century

pic 1: '2' glyph, Century font, Gdi+ version

test_century

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 :)

prepare added 4 commits April 14, 2017 08:46
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 :)
@prepare
Copy link
Contributor Author

prepare commented Apr 14, 2017

@vidstige,
travis-ci => pass 🎉
appveyor => failed!, I don't know how to fix that error.

@vidstige
Copy link
Owner

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.

@vidstige
Copy link
Owner

Master is also failing, so don't worry too much over that. @tocsoft set this up initially. At least the travis build is passing 👌

@prepare
Copy link
Contributor Author

prepare commented Apr 16, 2017

@vidstige ,
Do you have a plan to upgrade the project to VS2017 ?

@vidstige
Copy link
Owner

@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. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants