mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 06:01:17 +02:00
small tweak to font height calc
This commit is contained in:
@@ -224,7 +224,8 @@ float TextFreetypeGL::LineHeight(const char* str, const int len) {
|
||||
|
||||
float result = 0;
|
||||
|
||||
result = font->height - font->linegap;
|
||||
//result = font->height - font->linegap;
|
||||
result = font->ascender - font->descender - font->linegap;
|
||||
//printf("#2 LineHeight [%s] height = %f linegap = %f ascender = %f descender = %f\n",str,font->height,font->linegap,font->ascender,font->descender);
|
||||
|
||||
//result += (result * Font::scaleFontValue);
|
||||
|
Reference in New Issue
Block a user