Swift Custom Fonts Xcode

后端 未结 3 1813

I am creating a game in Xcode (Version 7.0 Beta) using Swift, and I would like to display the label \"Game Over\" at the end of the game in the font \"gameOver.ttf\". I have

3条回答
  •  既然无缘
    2020-12-05 18:23

    Along with the above answer, I would like to add an another answer on installing the custom fonts to Xcode which can be access to Mac as well as MAC.

    1. Select and download your favourite font styles from here

    2. Unzip the download folder and select all the fonts from folder and double tap to open
    
    3. Pop up appears to select all the fonts > check all and install
    
    4. Open Xcode, one can see from Attribute inspector for selected label
    

    That's all :)

    Watch out the attached pic for more ref:

    Font Lato appeared in Xcode workspace

提交回复
热议问题