- fixed text width calculation

- updated JApanese translation (thanks Hagekura)
This commit is contained in:
Mark Vejvoda 2011-11-03 14:29:35 +00:00
parent 0b18d22700
commit 6f6544e837
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ Text * FontMetrics::getTextHandler() {
float FontMetrics::getTextWidth(const string &str) {
if(textHandler != NULL) {
//printf("str [%s] textHandler->Advance = %f Font::scaleFontValue = %f\n",str.c_str(),textHandler->Advance(str.c_str()),Font::scaleFontValue);
//return (textHandler->Advance(str.c_str()) * Font::scaleFontValue);
return (textHandler->Advance(str.c_str()));
return (textHandler->Advance(str.c_str()) * Font::scaleFontValue);
//return (textHandler->Advance(str.c_str()));
}
else {
float width= 0.f;