Merge pull request #15048 from aardvarkk/binaryfontfix

Bitmap font sizes are not loaded from binary .fnt files.
This commit is contained in:
zilongshanren 2016-02-15 21:17:04 +08:00
commit ca7fa1ecd2
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ std::set<unsigned int>* BMFontConfiguration::parseBinaryConfigFile(unsigned char
fontName n+1 string 14 null terminated string with length n
*/
memcpy(&_fontSize, pData, 2);
_padding.top = (unsigned char)pData[7];
_padding.right = (unsigned char)pData[8];
_padding.bottom = (unsigned char)pData[9];