0

i have tried to add custom fonts in application at run time. so i have added those .ttf files into the document directory. Now i want to access those files with font name in my application. so please Suggest how to add custom fonts in Application at run time.

Thanks.

jaydev
  • 1,629
  • 5
  • 17
  • 31
  • Check below link for adding custom font https://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/ – Rajesh Dharani Sep 24 '18 at 10:22
  • 2
    He wants to use a font "at run time". None of the above links are about that. – Rengers Sep 24 '18 at 10:26
  • HI Friend Thanks , my requirement is this i have added some fonts in plist file , those are working fine but now some font links are coming in api , so those font files i have save in document directory. so i want how to save those files in plist with existing font files and how to get font names from those files. – jaydev Sep 24 '18 at 11:44
  • how to use @font-face in ios application with webview – jaydev Oct 01 '18 at 12:14

1 Answers1

0

I don't think you can do this. You need to have the font on compile time. Added in the resource and also it needs to be mentioned in info.plist.

Please see the below link from apple on how to add custom font in app. There is no way other then this.

https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app