自定义字体在 WatchKit InterfaceFile 中显示自定义(none 安装)

Custom Font Showing Custom(none installed) in WatchKit InterfaceFile

我想 select "Custom" 来自 WatchKit 接口的属性检查器的 UILabel 选项,但它被禁用了。 有人面临同样的问题吗?如果我遗漏任何东西,请给我指示;

我正在使用 XCode 版本 6.2 (6C131e)

标准 iOS 字体仅在 iOS 设备上是标准字体。它们不包含在 Apple Watch 中。

文档显示了所有标准 WatchKit 字体样式的列表:

注意屏幕截图中的短语 "none installed"。

如果您想使用任何其他字体,您需要安装自定义字体。来自 the WatchKit docs:

To use custom fonts, you must install those fonts by doing the following:

  • Include the custom font file in both your WatchKit app and your WatchKit extension bundle.
  • Add the UIAppFonts key to your WatchKit app’s Info.plist file, and use it to specify the fonts you added to the bundle. For more information about this key, see Information Property List Key Reference.