Skip to content

Commit 3a2e6d2

Browse files
committed
Merge pull request #959 from jtwigg/v3.2
Hot fix for TTF outlines.
2 parents 4ba9c90 + f77af86 commit 3a2e6d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cocos2d/CCLabelTTF.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,8 @@ - (CCTexture*) createTextureWithAttributedString:(NSAttributedString*)attributed
656656
NSMutableAttributedString* outlineString = [attributedString mutableCopy];
657657
[outlineString addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0, outlineString.length)];
658658

659+
CGContextSetStrokeColorWithColor(context, color.CGColor);
660+
659661
[outlineString drawInRect:drawArea];
660662

661663
// Don't draw shadow for main font

0 commit comments

Comments
 (0)