在CCImage.mm文件中,在
原文链接:https://www.f2er.com/cocos2dx/342517.html// actually draw the text in the context // XXX: ios7 casting [str drawInRect:CGRectMake(textOriginX,textOrigingY,textWidth,textHeight) withFont:font lineBreakMode:NSLineBreakByWordWrapping alignment:(NSTextAlignment)align]; 行下添加如下程序: //New Code Start if(pInfo->hasStroke) { CGContextSetTextDrawingMode(context,kCGTextStroke); CGContextSetRGBFillColor(context,pInfo->strokeColorR,pInfo->strokeColorG,pInfo->strokeColorB,1); CGContextSetLineWidth(context,pInfo->strokeSize); [str drawInRect:CGRectMake(textOriginX,textHeight) withFont:font lineBreakMode:NSLineBreakByWordWrapping alignment:(NSTextAlignment)align]; } //New Code End 问题解决(mark一下,不知新版问题解决了没)