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 7519669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:56:30+00:00 2026-05-30T01:56:30+00:00

In my Application i am using Custom font. i copied my font.ttf file in

  • 0

In my Application i am using Custom font. i copied my font.ttf file in my project directory and i used following code to set custom font to a label.

[input setFont:[UIFont fontWithName: @"My Font" size: input.font.pointSize]]

The problem is it works perfect in iPhone 4.2 simulator but it in iPad 4.2 simulator it just Displays Default Font. How to resolve this?

  • 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-30T01:56:31+00:00Added an answer on May 30, 2026 at 1:56 am

    Following code is use for the custom font.

    UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 30, 240, 40)];
    [label1 setFont: [UIFont fontWithName: @"Grinched" size:24]];
    [label1 setText:@"Grinched Font"];
    [[self view] addSubview:label1];
    
    UILabel *label2 = [[UILabel alloc] initWithFrame:CGRectMake(10, 80, 240, 40)];
    [label2 setFont: [UIFont fontWithName: @"Energon" size:18]];
    [label2 setText:@"Energon Font"];
    [[self view] addSubview:label2];
    

    If you want shows the tutorial for that you visits the refrence link here

    May this code help for development.

    Happy codeing

    Thanks and Regards
    @samuel

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

Sidebar

Related Questions

I am using a custom font (TTF) in my Java application where i set
I am using the following code to embed Arial into my application: [Embed(source='../assets/fonts/Arial.ttf',fontFamily='CustomFont',fontWeight='regular', unicodeRange='U+0020-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+0080-U+00FF,U+0100-U+017F,U+0400-U+04FF,U+0370-U+03FF,U+1E00-U+1EFF,U+2022,U+2219,U+20AC-U+21AC',
I am developing a Wicket Application, where I am using a custom ttf font.
Good Day, I'm using an application that stores functions in a custom file extension
We have a custom PHP/MySQL web application that gets updated and copied (using SFTP)
I am trying to embed a font using the following code that I found
I am debugging a vs2008 web application project using the custom web server option
I'm using a custom font throughout my application (which, incidentally, I've frustratingly found out
In my application I'm using custom fields, with set*** methods wich changes some parameters
Hi guys i am using a custom font in universal application and it is

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.