I have links to fonts from where I can download fontName.ttf. Now When user selects a particular font I want to download that and install and use it for label. Can I add row in Plist Fonts provided by application programatically? And where should I save the fontName.ttf so application will use it.
Asked
Active
Viewed 1,412 times
4
-
2possible dublicate http://stackoverflow.com/questions/10312401/dynamic-custom-fonts-loader-in-ios – taffarel May 03 '13 at 08:25
-
This may be helpful for you to adding font in plist - Create a Plist programmatically after user action [Check it.](http://www.theappcodeblog.com/2011/07/18/iphone-development-tutorial-create-a-plist-programmatically-after-user-action/) – Shardul May 03 '13 at 09:09
2 Answers
0
Settings bundle resides inside your app's bundle, thus - you cannot change it at runtime, only at compile-time. So it is not possible.
You could check out different solutions:
Core Text fonts: Dynamic custom fonts loader in iOS
NSUserDefaults: Can i modify Root.plist in settings bundle dynamically?

Community
- 1
- 1

Guntis Treulands
- 4,764
- 2
- 50
- 72
-
So is there a way to use font after downloading .ttf file inside app itself? – Durgaprasad May 03 '13 at 09:25
-
I did as given in this answer http://stackoverflow.com/questions/10312401/dynamic-custom-fonts-loader-in-ios/14555377#14555377. But Its not getting registerd. I is applied to the text. But can I register it? So I dont have to use that function always – Durgaprasad May 04 '13 at 05:22
-
You should create new question based on your comment to get more support on that problem. – Guntis Treulands May 04 '13 at 19:46