2
0
Эх сурвалжийг харах

Trust FreeType about the font's row height. Possibly improves issue #13.

Lasse Öörni 12 жил өмнө
parent
commit
7cfb9a85f7

+ 2 - 2
Source/Engine/UI/Font.cpp

@@ -707,9 +707,9 @@ FontFace* Font::GetFaceTTF(int pointSize)
         }
     }
     
-    // Store point size and the height of a row. Use the height of the tallest font if taller than the specified row height
+    // Store point size and the height of a row
     newFace->pointSize_ = pointSize;
-    newFace->rowHeight_ = Max((face->size->metrics.height + 63) >> 6, maxHeight);
+    newFace->rowHeight_ = face->size->metrics.height >> 6;
     
     // Now try to pack into the smallest possible texture. If face does not fit into one texture, enable dynamic mode where
     // glyphs are only created as necessary