Bitmap: Add FIXME
This commit is contained in:
parent
aa786e268d
commit
d63c8cdc19
|
@ -949,6 +949,7 @@ IntRect Bitmap::textSize(const char *str)
|
||||||
int w, h;
|
int w, h;
|
||||||
TTF_SizeUTF8(font, str, &w, &h);
|
TTF_SizeUTF8(font, str, &w, &h);
|
||||||
|
|
||||||
|
// FIXME: This doesn't detect multibyte glyphs correctly
|
||||||
if (p->font->getItalic() && strlen(str) == 1)
|
if (p->font->getItalic() && strlen(str) == 1)
|
||||||
TTF_GlyphMetrics(font, *str, 0, 0, 0, 0, &w);
|
TTF_GlyphMetrics(font, *str, 0, 0, 0, 0, &w);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue