From 1dbac016595cddef1e99ba1c1561f12e7523387c Mon Sep 17 00:00:00 2001 From: Ian Clarkson Date: Fri, 12 Feb 2016 14:21:18 -0500 Subject: [PATCH] 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. --- cocos/2d/CCFontFNT.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/2d/CCFontFNT.cpp b/cocos/2d/CCFontFNT.cpp index de3a4a2d89..af8a41acbe 100644 --- a/cocos/2d/CCFontFNT.cpp +++ b/cocos/2d/CCFontFNT.cpp @@ -397,6 +397,7 @@ std::set* 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];