Forum Xamarin.iOS

Problem with import and using a custom font

HBendigHBendig Member
edited April 2018 in Xamarin.iOS

Hi there,

I have an issue with installing a custom font.
I'm developing a iOS App with Visual Studio for Mac.
I install the font like this:

  • install the font to the os
  • Put the .ttf file into the Ressources-folder
  • add this code to the "info.plist":
    <key>UIAppFonts</key>
    <array>
    <string>OpenSans-Regular.ttf</string>
    </array>

  • clean and recompile the application

But I'm still unable to select the font in the storyboard for a label. The font did not show up.

I can recreate the problem in a new and clean project, on windows and on mac and with different fonts.

What am I missing?
I'm searching for a solution a couple of days, but nothing seems to help.

Regards,
Henner

Sign In or Register to comment.