SpriteKit 的 labelNodeWithFontNamed 方法可以使用的字体列表 [英] List of fonts that can be used with SpriteKit's labelNodeWithFontNamed method

查看:25
本文介绍了SpriteKit 的 labelNodeWithFontNamed 方法可以使用的字体列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取可以与 SpriteKitlabelNodeWithFontNamed 方法一起使用的字体名称列表?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆