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.
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"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With