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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:29:50+00:00 2026-05-17T06:29:50+00:00

I am using the external fonts capability for my application. As external fonts are

  • 0

I am using the external fonts capability for my application.
As external fonts are not supported in 3.1 version I would like to define the font name in relation with the IOS that is executing the program. I have defined MY_FONT_NAME variable in a Constants.h file like this:

  //#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_3_2
  #ifdef __IPHONE_3_2
    #define MY_FONT_NAME @"ExternalFontName"    
  #else
    #define MY_FONT_NAME @"AppleGothic"
  #endif

I have tried both, the first commented line and the second, without success but it always get the value of “externalFontName”, even executing on a 3.1 device… and so, when I set the font in a label I get the error

‘NSInternalInconsistencyException’, reason: ‘Invalid parameter not satisfying: font != nil’

Anyone know what is the problem?? Thanks in advance

  • 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-17T06:29:51+00:00Added an answer on May 17, 2026 at 6:29 am

    Perhaps a better approach would be to use UIFont’s +fontWithName:size: to check the availability of the font, and / or examining the returned arrays from +familyNames and
    +fontNamesForFamilyName:.

    For example, I believe there are some fonts that are only present on the iPad running 3.2, even versus an iPhone running 4.0.

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

Sidebar

Related Questions

How can I load an external JavaScript file using a bookmarklet? This would overcome
Using Win32-specific APIs, is there an easy way to start an external application to
I'm using an external swf containing a number of font classes to load and
I'm using a external TrueType font in an embedded HTML resource. The font is
How do i pass three arguments using external interface in flash to a java
I'm trying to finish a little module from a reporting app using external dlls.
I was trying to compile a program using an external compiled object coreset.o. I
I have a need to create a transactional process using an external API that
The JavaScript security settings on Internet Explorer for my customers disallow using window.external.AddFavorite, and
I was trying the following example, but with external URLs: Using WebViews The example

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.