2

I'm making an app in which I'm using SKLabelNode. I would like to put a border around it.

This is my code sofar:

SKLabelNode *scoreLabel;
scoreLabel = [SKLabelNode labelNodeWithFontNames:@"Helvetica-Bold"];
scoreLabel.text = @"@";
scoreLabel.alpha = 1;
scoreLabel.fontSize = 30;
scoreLabel.position = CGPointMake(149,525);
[self addChild:scoreLabel];

Also, would anyone know how to use a custom font for this?

Say I make my own font, and then want to put a border around it, how would I do this?

CodeSmile
  • 64,284
  • 20
  • 132
  • 217
dotnextgen
  • 21
  • 4
  • border as in highlight? You could display the same label with the exact same parameters and same position, but fontSize slightly larger. Add that label first so it is displayed under the actual label. – CodeSmile Mar 06 '14 at 13:24
  • You could also use a regular and bold font of the same type. – ZeMoon Mar 07 '14 at 09:05

1 Answers1

0

I would say BMGlyph is the way to go. I use it all the time.

Theis Egeberg
  • 2,556
  • 21
  • 30