comparison engine/core/gui/base/gui_font.cpp @ 228:756b895e1dab

Merged unicode-support back into trunk. Now all GUI/visible strings should be unicode. Internal strings unchanged. Remember to use a font that actually has the desired codepoints. Current default unicode policiy is 'ignore'.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 21 Mar 2009 10:38:11 +0000
parents 90005975cdbb
children 47b49b9b0c0a
comparison
equal deleted inserted replaced
227:d642169490f7 228:756b895e1dab
41 41
42 GuiFont::~GuiFont() { 42 GuiFont::~GuiFont() {
43 delete m_font; 43 delete m_font;
44 } 44 }
45 45
46 int GuiFont::getStringIndexAt(const std::string& text, int x) { 46 int GuiFont::getStringIndexAt(const std::string& text, int x) const {
47 return m_font->getStringIndexAt(text, x); 47 return m_font->getStringIndexAt(text, x);
48 } 48 }
49 49
50 void GuiFont::drawString(gcn::Graphics* graphics, const std::string& text, int x, int y) { 50 void GuiFont::drawString(gcn::Graphics* graphics, const std::string& text, int x, int y) {
51 if (text == "") { 51 if (text == "") {