diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-06 22:56:43 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-06 15:18:53 -0700 |
commit | bd28cda98c51df0ef09ebaa638db43788e1855c5 (patch) | |
tree | 308e4d0f70bf16eb3e78cccb72fe3cdf672bb1d9 /src/gui/truetypefont.cpp | |
parent | f4a0cc34922e7c94e4bc2fce80fa6ab748854e58 (diff) | |
download | mana-bd28cda98c51df0ef09ebaa638db43788e1855c5.tar.gz mana-bd28cda98c51df0ef09ebaa638db43788e1855c5.tar.bz2 mana-bd28cda98c51df0ef09ebaa638db43788e1855c5.tar.xz mana-bd28cda98c51df0ef09ebaa638db43788e1855c5.zip |
Fixed the true type font to render unicode now
Diffstat (limited to 'src/gui/truetypefont.cpp')
-rw-r--r-- | src/gui/truetypefont.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index f81ea9c2..7f9abd3a 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -58,7 +58,7 @@ class TextChunk sdlCol.r = color.r; sdlCol.g = color.g; - SDL_Surface *surface = TTF_RenderText_Blended( + SDL_Surface *surface = TTF_RenderUTF8_Blended( font, text.c_str(), sdlCol); if (!surface) @@ -170,7 +170,7 @@ void TrueTypeFont::drawString(gcn::Graphics *graphics, int TrueTypeFont::getWidth(const std::string& text) const { int w, h; - TTF_SizeText(mFont, text.c_str(), &w, &h); + TTF_SizeUTF8(mFont, text.c_str(), &w, &h); return w; } |