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

  • SEARCH
  • Home
  • 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 7929459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:04:58+00:00 2026-06-03T20:04:58+00:00

I know this subject has been run into the ground, however I have tried

  • 0

I know this subject has been run into the ground, however I have tried every solution I’ve found on StackOverflow to fix this issue, and its just not working for some reason. I am creating a UILabel programmatically, then using this font. The UILabel is rendering but not in the font I want it to (looks like its defaulting to something)

First I imported two .ttf fonts into the xcode project under a folder called “Resources”. The two fonts are Gotham Book and Gotham Book Italic (GothaBoo.ttf, GothaBooIta.ttf)

Then, I added a line to the [my app]-Info.plist file called “UIAppFont”, added two rows to the array, Item 0 | String | GothaBoo, Item 1 | String | GothaBooIta.

I checked the Target Build Phases, under Copy Bundle Resources, and made sure the two fonts were in there.

Then, I simply added this code to the viewDidLoad routine:

UILabel *myLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 200, 100)];
myLabel1.text = @"Hello";
myLabel1.backgroundColor = [UIColor clearColor];
myLabel1.font = [UIFont fontWithName: @"GothaBoo" size: 48.0];
myLabel1.textColor = [UIColor blackColor];

[self.view addSubview:myLabel1]; 

No dice. What on earth am I doing wrong? The project is in Xcode 4.3.2, for the iPad, running 5+ of iOS

  • 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-06-03T20:04:59+00:00Added an answer on June 3, 2026 at 8:04 pm

    In the array the full filenames must be provided, so instead of Item 0 | String | GothaBoo, Item 1 | String | GothaBooIta you will have to turn this into Item 0 | String | GothaBoo.ttf, Item 1 | String | GothaBooIta.ttf

    Secondly the filename or the fontname might be different than the name that iOS likes to see in fontWithName:. Use Fontbook on your Mac to get the right name, if it still does not work after you have changed the filenames in the .plist.

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

Sidebar

Related Questions

I know this subject has been discussed before but still have problem with refresh
I know this has been asked a lot of times, but I have honestly
I know this subject has been beaten to death but after searching for a
I know this subject has been covered before on here but I need a
I know this is a subject that has been well covered here and throughout
I know this question has been asked several times, however, after digging through question
I know this subject has been done already over and over. but... i must
Yes, I know this subject has been covered before: Python idiom to chain (flatten)
I know there has been a lot fuzz about this subject on various forums
I know this subject has been covered and re-talked, but I still get stuck

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.