Bitmap: Add FIXME

This commit is contained in:
Jonas Kulla 2013-10-20 21:05:48 +02:00
parent aa786e268d
commit d63c8cdc19
1 changed files with 1 additions and 0 deletions

View File

@ -949,6 +949,7 @@ IntRect Bitmap::textSize(const char *str)
int w, h;
TTF_SizeUTF8(font, str, &w, &h);
// FIXME: This doesn't detect multibyte glyphs correctly
if (p->font->getItalic() && strlen(str) == 1)
TTF_GlyphMetrics(font, *str, 0, 0, 0, 0, &w);