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:
minggo 2015-05-12 09:46:26 +08:00
commit 5d0fc22d28
1 changed files with 3 additions and 0 deletions

View File

@ -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);