Răsfoiți Sursa

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

Lasse Öörni 12 ani în urmă
părinte
comite
7cfb9a85f7
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      Source/Engine/UI/Font.cpp

+ 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->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
     // 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
     // glyphs are only created as necessary