From d63c8cdc191e7b9031de8e85efe32ef217ec5d04 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sun, 20 Oct 2013 21:05:48 +0200 Subject: [PATCH] Bitmap: Add FIXME --- src/bitmap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitmap.cpp b/src/bitmap.cpp index 15171c9..a8eb0b8 100644 --- a/src/bitmap.cpp +++ b/src/bitmap.cpp @@ -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);