summaryrefslogtreecommitdiff
path: root/src/gui/truetypefont.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-06 22:56:43 +0100
committerIra Rice <irarice@gmail.com>2009-01-06 15:18:53 -0700
commitbd28cda98c51df0ef09ebaa638db43788e1855c5 (patch)
tree308e4d0f70bf16eb3e78cccb72fe3cdf672bb1d9 /src/gui/truetypefont.cpp
parentf4a0cc34922e7c94e4bc2fce80fa6ab748854e58 (diff)
downloadmana-client-bd28cda98c51df0ef09ebaa638db43788e1855c5.tar.gz
mana-client-bd28cda98c51df0ef09ebaa638db43788e1855c5.tar.bz2
mana-client-bd28cda98c51df0ef09ebaa638db43788e1855c5.tar.xz
mana-client-bd28cda98c51df0ef09ebaa638db43788e1855c5.zip
Fixed the true type font to render unicode now
Diffstat (limited to 'src/gui/truetypefont.cpp')
-rw-r--r--src/gui/truetypefont.cpp4
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;
}