Attributed string with custom fonts in storyboard does not load correctly

后端 未结 16 2005
梦谈多话
梦谈多话 2021-01-30 03:35

We are using custom fonts in our project. It works well in Xcode 5. In Xcode 6, it works in plain text, attributed string in code. But those attributed strings set in storyboard

16条回答
  •  粉色の甜心
    2021-01-30 04:19

    You can add custom fonts to font book.

    Step1: Click on manage fonts. It opens the font book.

    Step2: Click on plus and add your fonts.

    Next time when you click on font with attributed text newly added font also will show in the list. But make sure your custom font added in info.plist and bundle resources.

提交回复
热议问题