memononen / fontstash

Light-weight online font texture atlas builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

some glyphs display wrong

tailangjun opened this issue · comments

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.

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

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

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.

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

adtional, freetype2 and stb_truetype has the same effect.

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

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/