- 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) {
|
float FontMetrics::getTextWidth(const string &str) {
|
||||||
if(textHandler != NULL) {
|
if(textHandler != NULL) {
|
||||||
//printf("str [%s] textHandler->Advance = %f Font::scaleFontValue = %f\n",str.c_str(),textHandler->Advance(str.c_str()),Font::scaleFontValue);
|
//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()) * Font::scaleFontValue);
|
||||||
return (textHandler->Advance(str.c_str()));
|
//return (textHandler->Advance(str.c_str()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
float width= 0.f;
|
float width= 0.f;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user