gpt4 book ai didi

ios - 字体 BebasNeue 不适用于 iOS 11

转载 作者:行者123 更新时间:2023-11-28 07:59:59 24 4
gpt4 key购买 nike

  1. 将 .ttf 文件复制到项目中。
  2. 确认 .ttf 文件已将项目设置为目标。
  3. 在 plist 的“应用程序提供的字体”中添加了 .ttf 文件。
  4. 在构建阶段,.ttf 文件位于“Copy Bundle Resources”中。
  5. 在我的 Mac 上安装字体。
  6. 尝试打印出所有可用的字体,但我看不到我的自定义字体。
  7. 我尝试在代码中安装字体,ios 10 及以下版本有效,但 ios 11 无效。

Fonts provided by application' in plist

最佳答案

在做了一些变通后发现:

导入您的自定义字体 -> StoryBoard -> Attributes Inspector Label -> Select Text type = Attribute -> 选择您的自定义字体。

请引用下面的示例图片。

enter image description here

关于ios - 字体 BebasNeue 不适用于 iOS 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46929479/

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