mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11782 from WenhaiLin/v3-label-outline
Label:Fixed the characters with outline not on the same base line.
This commit is contained in:
commit
5d0fc22d28
|
@ -312,6 +312,9 @@ unsigned char* FontFreeType::getGlyphBitmap(unsigned short theChar, long &outWid
|
|||
auto blendWidth = MAX(outlineMaxX, glyphMaxX) - blendImageMinX;
|
||||
auto blendHeight = blendImageMaxY - MIN(outlineMinY, glyphMinY);
|
||||
|
||||
outRect.origin.x = blendImageMinX;
|
||||
outRect.origin.y = -blendImageMaxY;
|
||||
|
||||
long index, index2;
|
||||
auto blendImage = new unsigned char[blendWidth * blendHeight * 2];
|
||||
memset(blendImage, 0, blendWidth * blendHeight * 2);
|
||||
|
|
Loading…
Reference in New Issue