-1

i want to use custom font in my ios project; i have not problem with other fonts but with this font: http://modireaval.com/iLaplas.ttf please help me. thanks a lot

1 Answers1

0

How do you use this font ?

To use custom font :

1/ add your custom font in your project like resources (font .ttf or .otf)

2/ in your info.plist add key UIAppFonts (Fonts provided by application) and and the name of each custom font (for example : iLaplas.ttf)

3/ you can create macro for use your font

#define FONT_ILAPLAS_STD(s) [UIFont fontWithName:@"iLaplas" size:s]

4/ use this macro for a label par exemple :

_myLabel.font = FONT_ILAPLAS_STD(15.0f);

Have a look to the different answers here.

Community
  • 1
  • 1
Jordan Montel
  • 8,227
  • 2
  • 35
  • 40