- fixed text width calculation
- updated JApanese translation (thanks Hagekura)
This commit is contained in:
parent
0b18d22700
commit
6f6544e837
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue