Browse Source

Change lineheight to lineHeight, because bitmap font is generated by external tool, it use lineHeight.[ci skip]

aster 11 years ago
parent
commit
4c6b1e10df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Engine/UI/Font.cpp

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

@@ -780,7 +780,7 @@ FontFace* Font::GetFaceBitmap(int pointSize)
         newFace->pointSize_ = infoElem.GetInt("size");
         newFace->pointSize_ = infoElem.GetInt("size");
     
     
     XMLElement commonElem = root.GetChild("common");
     XMLElement commonElem = root.GetChild("common");
-    newFace->rowHeight_ = commonElem.GetInt("lineheight");
+    newFace->rowHeight_ = commonElem.GetInt("lineHeight");
     unsigned pages = commonElem.GetInt("pages");
     unsigned pages = commonElem.GetInt("pages");
     newFace->textures_.Reserve(pages);
     newFace->textures_.Reserve(pages);