Skip to content

fix glyph rendering, handle multiple cmap#51

Open
prepare wants to merge 5 commits into
vidstige:masterfrom
prepare:update_RenderGlyph
Open

fix glyph rendering, handle multiple cmap#51
prepare wants to merge 5 commits into
vidstige:masterfrom
prepare:update_RenderGlyph

Conversation

@prepare

@prepare prepare commented Apr 14, 2017

Copy link
Copy Markdown
Contributor

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

prepare commented Apr 14, 2017

Copy link
Copy Markdown
Contributor Author

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

@vidstige

Copy link
Copy Markdown
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
Copy Markdown
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

prepare commented Apr 16, 2017

Copy link
Copy Markdown
Contributor Author

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

@vidstige

Copy link
Copy Markdown
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