mirror of https://github.com/axmolengine/axmol.git
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:
parent
67f4be538b
commit
1dbac01659
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue