We noticed that, when using italic fonts, SDL_ttf causes memory to be
corrupt. It looks like freetype renders pixmaps which are larger than
advertised (that is, glyph->pixmap.width > glyph->maxx - glyph->minx).
This causes rendering to overflow out of the drawing box, thus
The attached patch fixes that. It also fixes textbox width calculations,
taking kerning into account, and adds a generic overflow detection, to
prevent any memory corruption error that may occur.
Philippe Plantier / Ayin
Battle for Wesnoth - www.wesnoth.org
-------------- next part --------------
A non-text attachment was scrubbed…
Size: 2413 bytes
Desc: not available