Can't set certain fonts in Interface Builder Xcode 6

I'm trying to select certain fonts (American Typewriter, Arial) as custom fonts for a plain UILabel in a Storyboard, but it doesn't work in Xcode6. It simply reverts to the previous selected font. I've Verified the behavior on two systems. Is there something specific about these fonts that won't allow it to be selected, or is there something that needs to be 'turned on'/installed for this to work?


This was confusing for me too. Here is what I had to do to work around it.

  • In the Text Field Attributes, select "Attributed" from the text drop down.
  • Select all of the text that is displayed right under the Font Text Box. This should be the text you would like displayed.
  • Right click the selection and select "Font > Show Fonts" from the context menu. This should bring up the Font selection dialog.
  • Select the font that you desire.
  • Close the font dialog.
  • It could be that this is intentional since you may what different parts of the attributed text to use different fonts. Either way, select a Font in the Font Text box should apply the style to the entire text region.

    链接地址: http://www.djcxy.com/p/80946.html

    上一篇: 如何让URL在ASP.NET MVC5中包含点?

    下一篇: 无法在Interface Builder Xcode 6中设置某些字体