Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>iOS 3.2 and later support this. Straight from the <em>What's New in iPhone OS 3.2</em> doc:</p> <blockquote> <p><strong>Custom Font Support</strong><br> Applications that want to use custom fonts can now include those fonts in their application bundle and register those fonts with the system by including the UIAppFonts key in their Info.plist file. The value of this key is an array of strings identifying the font files in the application’s bundle. When the system sees the key, it loads the specified fonts and makes them available to the application.</p> </blockquote> <p>Once the fonts have been set in the <code>Info.plist</code>, you can use your custom fonts as any other font in IB or programatically.</p> <p>There is an ongoing thread on Apple Developer Forums: <br> <a href="https://devforums.apple.com/thread/37824" rel="noreferrer">https://devforums.apple.com/thread/37824</a> (login required)</p> <p>And here's an excellent and simple 3 steps tutorial on how to achieve this (broken link removed)</p> <ol> <li>Add your custom font files into your project using Xcode as a resource</li> <li>Add a key to your <code>Info.plist</code> file called <code>UIAppFonts</code>.</li> <li>Make this key an array</li> <li>For each font you have, enter the full name of your font file (including the extension) as items to the <code>UIAppFonts</code> array</li> <li>Save <code>Info.plist</code></li> <li>Now in your application you can simply call <code>[UIFont fontWithName:@"CustomFontName" size:12]</code> to get the custom font to use with your <strong>UILabels</strong> and <strong>UITextViews</strong>, etc…</li> </ol> <p>Also: Make sure the fonts are in your Copy Bundle Resources.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload