mirror of https://github.com/axmolengine/axmol.git
fix font rendering position
This commit is contained in:
parent
93609ff586
commit
f05053329b
|
@ -353,7 +353,7 @@ bool FontAtlas::prepareLetterDefinitions(const std::u16string& utf16Text)
|
|||
tempDef.validDefinition = true;
|
||||
tempDef.width = tempRect.size.width + _letterPadding + _letterEdgeExtend;
|
||||
tempDef.height = tempRect.size.height + _letterPadding + _letterEdgeExtend;
|
||||
tempDef.offsetX = tempRect.origin.x + adjustForDistanceMap + adjustForExtend;
|
||||
tempDef.offsetX = tempRect.origin.x + adjustForDistanceMap - adjustForExtend;
|
||||
tempDef.offsetY = _fontAscender + tempRect.origin.y - adjustForDistanceMap - adjustForExtend;
|
||||
|
||||
if (_currentPageOrigX + tempDef.width > CacheTextureWidth)
|
||||
|
|
Loading…
Reference in New Issue