gpt4 book ai didi

ios - CCLabelTTF 支持的字体?

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:23:30 24 4
gpt4 key购买 nike

在哪里可以找到 CCLabelTTF 支持的字体列表?如果我尝试将 CCLabel 的字体设置为像 Bank Gothic 这样的字体,xcode 会说该字体无法加载。如果您转到“编辑”>“格式”>“字体”>“在 xcode 中显示字体”,它会为您提供 xcode 中的字体列表,而 Bank Gothic 就是其中之一,那么为什么它不能与 CCLabelTTF 一起使用?

谢谢!

-马格努斯

最佳答案

包含的字体是:

"American Typewriter"
"Arial"
"Arial Rounded MT Bold"
"Courier New"
"Georgia"
"Helvetica"
"Marker Felt"
"Times New Roman"
"Trebuchet MS"
"Verdana"
"Zapfino"

但是您可以非常简单地添加字体:Using custom fonts in Cocos2d

关于ios - CCLabelTTF 支持的字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12501567/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com