Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6903751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:57:52+00:00 2026-05-27T07:57:52+00:00

I cant get my .ttf file to work in my iPhone app. I added

  • 0

I cant get my .ttf file to work in my iPhone app. I added this file to my project:

gothamnarrowbook.ttf

I added this to my plist:

<key>UIAppFonts</key>
<array>
    <string>gothamnarrowbook.ttf</string>
</array>

And in my ViewController, I added this:

UIFont *gnb = [UIFont fontWithName:@"gothamnarrowbook" size:22];

But gnb is nil. What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:57:53+00:00Added an answer on May 27, 2026 at 7:57 am

    Unfortunately, the actual ‘name’ of the font you reference in the .plist isn’t necessarily the same as its file-name.

    To find out the real name of the font, open it in Font Book, and you should be able to see it’s real name. Maybe the actual name is “Gotham Narrow Book”, or something like that, Font Book will tell you.

    Check out this blog post to find out more.

    Also note that:

    Using the name from Font Book works well enough for fonts with one
    variant, but if your font has multiple variants, and you don’t want to
    get involved with iOS’s seemingly incomplete implementation of
    NSAttributedString, then you’ll have to specify the variant explicitly
    when you load the font.

    Using UIFont’s class method +fontNamesForFamilyName: you supply the
    font family name, for example “Cloister Black” which might have two
    variants “Light” and “Dark”, and it will return an NSArray of all
    variants of that font, “CloisterBlack-Light” and “CloisterBlack-Dark”.
    Notice no spaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cant get this script to work, $users should hold the array data we
I'm probably doing something realy stupid but I cant get this to work: var
Cant get this to work can any one help. List the part number, part
I cant get this to work. I'm trying to match A and B from
I tried different ways to do this but i cant get it work. this
I cant get this to work. The State field is empty on certain occassions,
I cant get this to work - not sure what Im doing wrong -
I cant get this to work, I want to create a new element DIV
I cant get the insert to work in this code. I have other numpy
I cant get a PHP file to send correct headers at my WAMP server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.