Problem:
I added two custom fonts to my Xcode project folder and included them in info.plist under Fonts provided by application. However, when I try to set these fonts in Interface Builder (Storyboard), they don’t appear in the custom font list.
Solution:
In Interface Builder (Storyboard), if you’re not seeing your custom fonts listed under the font options, try the following steps:
Change Text to Attributed:
Select the text element (like a label or a button) in your storyboard.
Change the text type from plain to attributed. You can do this by selecting the text and changing the option in the Attributes Inspector.
Select the Font:
Once the text is in attributed mode, click on the font style option (usually marked with a ‘T’) in the Attributes Inspector.
Your custom fonts should now appear in the list of available fonts. Select the one you want to use.
Customize and Apply:
Customize the font size, style, and other attributes as needed.
After setting the font, you can change the text type back to plain if that’s what you originally intended.
This approach should allow you to access and apply your custom fonts within Interface Builder. If you continue to experience issues, ensure that your fonts are correctly added to your project’s info.plist file under Fonts provided by application, and that they are included in your Xcode project’s target.
Hope this helps anyone facing a similar issue!