Load and Access Custom Fonts in iOS App

In this post, I will describe load & access custom fonts in iOS App

Next, add a property in the project plist named UIAppFonts, which is an array containing the names of each font you would like to make available in the application – if you are using the Property List Editor in Xcode, select Fonts provided by application from the dropdown list. Add an entry for each font:

The property list below is the text version of the plist file, here you can see the key UIAppFonts, the array and each of the two font entries:

To access the fonts within an application, call the method fontWithName in the UIFont class, include the font size as well:

The output of the above looks as follows in the simulator:

To get a list of all the available font family names in your app, add this to your code:

Following code for check how much font supported into ios.

 

Leave a Reply

Your email address will not be published. Required fields are marked *


8 + = nine


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">