可以与SpriteKit的labelNodeWithFontNamed方法一起使用的字体列表 [英] List of fonts that can be used with SpriteKit's labelNodeWithFontNamed method
问题描述
如何获取可以用于 SpriteKit
的 labelNodeWithFontNamed
方法的字体名称列表?
How can I get the list of font names that can be used with SpriteKit
's labelNodeWithFontNamed
method?
有一个方法 SKLabelNode
其中我可以指定字体名称,但我想知道支持哪些字体
There is a method of SKLabelNode
where I can specify the font name but I would like to know which fonts are supported and what are their names.
示例:
[SKLabelNode labelNodeWithFontNamed:@"Chalkduster"];
推荐答案
请参阅 iosfonts.com 它们显示了实际字体的样子,它的描述性名称和代码名称以及添加了特定字体的iOS版本。
Refer to iosfonts.com They show you how the actual font looks like, it's descriptive name and its code name as well as the iOS version a specific font was added.
仅使用每种字体的代码名称,例如 AmericanTypewriter-CondensedLight
。
Use only the code names of each font, like AmericanTypewriter-CondensedLight
.
这篇关于可以与SpriteKit的labelNodeWithFontNamed方法一起使用的字体列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!