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
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-06 22:57:15 +0100
commit467065bab257b23d7783088563ff82459e9179c9 (patch)
treeb3cecce9798ad7f025f4fd293160e3cccf26b81c /src/gui/truetypefont.cpp
parentd3eced6c5078ff7330383ee9317ac4f37389ac69 (diff)
downloadmana-467065bab257b23d7783088563ff82459e9179c9.tar.gz
mana-467065bab257b23d7783088563ff82459e9179c9.tar.bz2
mana-467065bab257b23d7783088563ff82459e9179c9.tar.xz
mana-467065bab257b23d7783088563ff82459e9179c9.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 9343c224..0eed6f08 100644
--- a/src/gui/truetypefont.cpp
+++ b/src/gui/truetypefont.cpp
@@ -55,7 +55,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)
@@ -167,7 +167,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;
}