We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ad357e + c5d4230 commit 06b3598Copy full SHA for 06b3598
cocos2d/CCLabelTTF.m
@@ -655,17 +655,16 @@ - (CCTexture*) createTextureWithAttributedString:(NSAttributedString*)attributed
655
[outlineString addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0, outlineString.length)];
656
657
[outlineString drawInRect:drawArea];
658
-
659
- CGContextSetTextDrawingMode(context, kCGTextFill);
660
+
661
// Don't draw shadow for main font
662
CGContextSetShadowWithColor(context, CGSizeZero, 0, NULL);
663
664
if (hasShadow)
665
{
666
// Draw outline again because shadow overlap
667
668
}
+ CGContextSetTextDrawingMode(context, kCGTextFill);
669
670
671
[attributedString drawInRect:drawArea];
0 commit comments