mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 17:39:02 +02:00
- fixed debug output font position --> just for you james!
This commit is contained in:
@@ -141,10 +141,11 @@ float FontMetrics::getTextWidth(const string &str) {
|
||||
}
|
||||
}
|
||||
|
||||
float FontMetrics::getHeight() const {
|
||||
float FontMetrics::getHeight(const string &str) const {
|
||||
if(textHandler != NULL) {
|
||||
//printf("(textHandler->LineHeight(" ") = %f Font::scaleFontValue = %f\n",textHandler->LineHeight(" "),Font::scaleFontValue);
|
||||
return (textHandler->LineHeight(" ") * Font::scaleFontValue);
|
||||
//return (textHandler->LineHeight(str.c_str()) * Font::scaleFontValue);
|
||||
return (textHandler->LineHeight(str.c_str()));
|
||||
}
|
||||
else {
|
||||
return height;
|
||||
|
Reference in New Issue
Block a user