James
James

Reputation: 49

Font is being ignored when app is built?

So I have just finished making a game (with help from @Fluidity) and when I build it the fonts requested are all ignored. I have selected fonts to be used in main.storyboard but when it gets to the game the default is used. Any help is appreciated.

Upvotes: 1

Views: 54

Answers (2)

James
James

Reputation: 49

I fixed the problem by Checking the box in Target Membership relevant to the necessary application.

Target membership is located on the right after clicking your custom font under your application files.

Upvotes: 1

Dishant Kapadiya
Dishant Kapadiya

Reputation: 553

You'll need to add the file in your project and specify this font in your Info.plist

For example, add the following in your Info.plist

<key>UIAppFonts</key>
<array>
    <string>Fluidity.otf</string>
</array>

I'm assuming the filename is Fluidity.otf

Upvotes: 1

Related Questions