Bitmap font sizes are not loaded from binary .fnt files.

This problem causes bitmap fonts based on .fnt files to not appear at all, and no error is thrown.
Fixes #15042.
This commit is contained in:
Ian Clarkson 2016-02-12 14:21:18 -05:00
parent 67f4be538b
commit 1dbac01659
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];