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

some glyphs display wrong #32

Open
tailangjun opened this issue Jul 26, 2017 · 7 comments
Open

some glyphs display wrong #32

tailangjun opened this issue Jul 26, 2017 · 7 comments

Comments

@tailangjun
Copy link

I use fontstash to draw a str = @"i:ə:ɔ:u:ɑ:i:ɜ:ɔ:u:ɑ:iɜɔuɑ", the glyph of "ɜ" display wrong.
use "PingFangSC-Regular"
image
use "SFUIText-Light"
image
use "HelveticaNeue"
image

addtional, I suggest updating stb_trunetype to the latest version in order to support OpenType format, which internal use of the CCF table.

@memononen
Copy link
Owner

I just merged #31 which updated stb_truetype. Can you try the latest first?

@tailangjun
Copy link
Author

I just updated to the latest version, the effect is the same.

@memononen
Copy link
Owner

Do you know a way to get access to those fonts? Looks like they are iOS fonts, but I'm unable to locate download for them.

@tailangjun
Copy link
Author

iOS sandbox prevents access to system's ttf. so I use a memFont, which parsing from CGFont. You can try this ttf file, the effect is the same.
PingFang-Regular.ttf.zip

@tailangjun
Copy link
Author

adtional, freetype2 and stb_truetype has the same effect.

@memononen
Copy link
Owner

Thanks for the font, I'll take a look. Since HelvetivaNeue is working ok, you are probably using UTF-8 for the string correctly.

@memononen
Copy link
Owner

I don't think the PingFang font has that glyph.

You can use for example this tool to check which glyphs are in the font: http://bluejamesbond.github.io/CharacterMap/

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

No branches or pull requests

2 participants