Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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; enter image description here

I am using XCode Version 6.2 (6C131e)

like image 505
msmq Avatar asked Sep 28 '22 08:09

msmq


1 Answers

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:

enter image description here

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.
like image 80
Aaron Brager Avatar answered Oct 06 '22 19:10

Aaron Brager