mirror of https://github.com/axmolengine/axmol.git
89f08bb441
face->size->metrics->ascender seems to be unreliable for some fonts, additionally the freetype documentation says that it may be used differently for different fonts. Therefore it may happen that the ascender of a font face is less then the glyphs bounding box resulting in accessing invalid memory. The fix is to use the bbox attribute instead of the ascender |
||
---|---|---|
.. | ||
android | ||
blackberry | ||
ios | ||
linux | ||
mac | ||
marmalade | ||
nacl | ||
third_party | ||
win32 | ||
CCAccelerometerDelegate.h | ||
CCApplicationProtocol.h | ||
CCCommon.h | ||
CCDevice.h | ||
CCEGLViewProtocol.cpp | ||
CCEGLViewProtocol.h | ||
CCFileUtils.cpp | ||
CCFileUtils.h | ||
CCImage.h | ||
CCImageCommonWebp.cpp | ||
CCImageCommon_cpp.h | ||
CCPlatformConfig.h | ||
CCPlatformMacros.h | ||
CCSAXParser.cpp | ||
CCSAXParser.h | ||
CCThread.cpp | ||
CCThread.h | ||
platform.cpp | ||
platform.h |