3

I know I can create a custom font using this code:

[UIFont fontWithName:@"bebas-neue" size:10];

But if I want to create an SKLabelNode, how can I set this as the font?

SKLabelNode only takes a string as the fontName.

Max Hudson
  • 9,961
  • 14
  • 57
  • 107

1 Answers1

7

The procedure is essentially the same as for UIFont.

To do this from scratch, follow the same process as for adding a custom UIFont (described here), then just use:

[SKLabelNode labelNodeWithFontNamed:@"Font Name Here"]
Batalia
  • 2,425
  • 1
  • 17
  • 18