【问题标题】:how can I import new font in xcode using during project [duplicate]如何在项目期间使用 xcode 导入新字体 [重复]
【发布时间】:2011-08-24 21:55:30
【问题描述】:

可能重复:
Can I embed a custom font in an iPhone application?

嗨!大家,我有一个问题,我需要在 xcode 中插入名为 Apple LiGothic Medium 的新字体,以便我可以在我的应用程序中使用它。

请有人帮助我

【问题讨论】:

    标签: iphone fonts custom-font


    【解决方案1】:
    【解决方案2】:

    如果您有您想要并且可以合法使用的字体版本,您可以这样做(自 iOS 版本 3.2 起):

    将字体文件添加到 Xcode 中的项目中(例如在参考资料中)。 将键 UIAppFonts 添加到 info.plist 文件并使其成为数组类型。 将字体文件名添加到数组中。 使用它,例如 [UIFont fontWithName:@"fontnamr" size:20]。

    【讨论】:

      猜你喜欢
      • 2018-09-27
      • 1970-01-01
      • 2014-07-11
      • 1970-01-01
      • 1970-01-01
      • 2012-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多