SKlabelNode custom font
问题 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. 回答1: 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"] 来源: https://stackoverflow.com/questions/21368283