Custom font doesn't appear on Storyboard custom font list

Hi everyone, (you can answer in french)

I’m french-rookie in xcode, and I have a problem:

I’m trying to choice my custom font to add it in my Main.storyboard button, but it not works.

I have my « Font provided by application » line in my Info.plist, with the name of my font in [0] (See images below)

When I’m on storyboard button, I chose « custom » in font selector, then display font list but my custom font doesn’t appear.

I already tried to install the font in my mac, but still stucked, nothing change 😭

Could you help me please? Thanks a lot

(I specify that I scrupulously followed the way of doing explained on the Apple official page: Adding a Custom Font to Your App )

You have to load programmatically the font before use it.

Hi Jesus, sorry for my late response and thanks for your answer. Ok but initially, I want do it like Apple's documentation shows... My question is why it doesn't works, it should be work no?

If Fiind solved so tall me how to fix it ?

There seems to be a bug in the latest Xcode or macOS causing this. I have storyboards with custom fonts that work fine, but whenever I go to the font menu, it won't show any custom fonts. I haven't changed anything in my app, so it's likely a bug that Apple needs to fix. I suspect you can manually edit the storyboard XML files to add the custom font names, but that's not a simple task.

I have the same problem in Xcode. I'm currently using macOS Sonoma 14.5 with Xcode 15.4.

I have tested to follow Apple's guidelines but the fonts will not show up in the custom fonts list. https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app

I have also tested to install the fonts to the Font Book but that did not solve the problem. Another thing that I tested (read in a forum) was to change the font color to trigger a custom font list update but that did not work either.

I can however get and use the fonts programmatically but that is not what I want to do in my project. Any updates on this Apple? This thread is one year old and the bug is still there.

Custom font doesn't appear on Storyboard custom font list
 
 
Q