Ticket #652 (closed defect: duplicate)
Font glyphs clipped on Mac OS X
| Reported by: | anonymous | Owned by: | jorrit |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | general | Version: | V1.9 |
| Keywords: | Cc: |
Description
Freetype2 font glyphs can be seen to be clipped in g2dtest. I'm running Mac OS X 10.5 with a Nvidia Geforce 8600M GT card.
I've stepped through the g2dtest code using the OpenGL profiler putting breakpoints on glTexSubImage2D code and it seems that the driver on Mac OS X rounds up the width and height in the subimage to a multiple of 4, this results in new glyphs overlapping old glyphs. I've attached the texture views outputted by the profiler. This may be related to an old OS X bug: http://lists.apple.com/archives/mac-opengl/2002/Jul/msg00116.html
After changing the code in libs/csplugincommon/opengl/glfontcache.cpp to make glyph allocations rounded up to a multiple of 4 the problem no longer seems to happen.
