简体   繁体   中英

Custom Font Showing Custom(none installed) in WatchKit InterfaceFile

I want to select "Custom" option from Attribute Inspector of WatchKit Interface for UILabel but its disabled. Is Any one facing the same problem? Please give me direction if I am missing any thing; 在此输入图像描述

I am using XCode Version 6.2 (6C131e)

The standard iOS fonts are only standard on iOS devices. They are not included on Apple Watch.

The documentation shows this list of all standard WatchKit font styles:

在此输入图像描述

Note the phrase "none installed" in your screenshot.

If you want to use any other font , you'll need to install a custom font. From 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM