akrinke / Font-Stash

A dynamic font glyph cache for OpenGL.
114 stars 18 forks source link

visual bug with rotation #3

Closed dtamburr closed 11 years ago

dtamburr commented 11 years ago

When you do a glRotate the font is rendered with a thin outline corresponding to the bounding box. Try doing glRotated(2, 0, 0, 1) before calling font.draw() to see the problem. It sometimes also happens if you do a glTranslate. letter_outline

akrinke commented 11 years ago

Thank you for the report. I can reproduce the issue following these steps:

Texture filtering mode seems to have an influence as well.

I think the problem is that textures of bitmap fonts are stored in the same list as the textures for truetype glyphs. I will look into it.