X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Ffont.cpp;h=e0a8e1977dd59eee6c2be55641e27687232a019b;hb=b029182b66e1f36e8eb7a1d8d23d26d475dec45f;hp=7ddebbd06ab12626924378311cdd46170881a532;hpb=88044088f138f9f6bdaaaf873f114f34f053c864;p=supertux.git diff --git a/src/video/font.cpp b/src/video/font.cpp index 7ddebbd06..e0a8e1977 100644 --- a/src/video/font.cpp +++ b/src/video/font.cpp @@ -179,7 +179,7 @@ Font::loadFontFile(const std::string &filename) msg << "Font:" << filename << ": missing shadows image"; throw std::runtime_error(msg.str()); } - if( ! glyphs_val->get_vector("chars", chars) || chars.size() == 0) { + if( ! glyphs_val->get("chars", chars) || chars.size() == 0) { std::ostringstream msg; msg << "Font:" << filename << ": missing chars definition"; throw std::runtime_error(msg.str()); @@ -232,8 +232,8 @@ Font::loadFontSurface( for( unsigned int i = 0; i < chars.size(); i++) { for(UTF8Iterator chr(chars[i]); !chr.done(); ++chr) { - float y = row * char_height; - float x = col * char_width; + int y = row * char_height; + int x = col * char_width; if( ++col == wrap ) { col=0; row++; } if( *chr == 0x0020 && glyphs[0x20].surface_idx != -1) continue;