From 6f6544e837399ac96c5cf11dc696a70d3fb2938f Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 3 Nov 2011 14:29:35 +0000 Subject: [PATCH] - fixed text width calculation - updated JApanese translation (thanks Hagekura) --- source/shared_lib/sources/graphics/font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/graphics/font.cpp b/source/shared_lib/sources/graphics/font.cpp index 76a565c8..fc78fd1c 100644 --- a/source/shared_lib/sources/graphics/font.cpp +++ b/source/shared_lib/sources/graphics/font.cpp @@ -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;