rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Sections of font missing at different sizes #104

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello,

Please see this screen shot taken from running the font demo

http://s27.postimg.org/t0bsqtwpf/font.png

Is there anything that I can do to fix the problem with white lines appearing to strike through the text at various sizes? also some letters seem to join.

Thanks

rougier commented 8 years ago

It seems the font you're using is "pixelated". What is the font name ?

ghost commented 8 years ago

Unifont - http://unifoundry.com/unifont.html

ghost commented 8 years ago

Is there anything that I can try to fix this? I really need to use this font and want to use this library.

rougier commented 8 years ago

Sorry to not have answered you sooner. The font you're using is a bit "weird" in the sense that it is pixelated (on purpose) and I'm not sure if the problem you mentioned is related to that or not.

Can you test it using that atb-agg.c demo ?

ghost commented 8 years ago

The font doesn't appear at all in the atb-agg demo, it's just a black background with the properties editor.

rougier commented 8 years ago

Only with this font or with any font ?

ghost commented 8 years ago

only this font, the fonts that are used by default in the demo work fine

rougier commented 8 years ago

Ok. I need to test it on my side. I'm quite busy right now but I'll try in the newt few days. Don't hesitate to ping me here for update.

ghost commented 8 years ago

Thank you!

ghost commented 8 years ago

Sorry it wasn't loading the file, but it's loading now. It does look easier on the eye in this demo (maybe because of white on black) however there still appears to be the problem with the solid strikethrough, the default font size is 16 but at 14 and 13 you can clearly see this problem.

ghost commented 8 years ago

With hinting turned off the strikethrough seems to disappear, I can live with it as it is with hinting turned off. Thanks for the help!