1

I want to implement custom fonts in ios settings.bundle file.if user selects custom font in my application then automatically change the font in my app.so i am trying to create settings.bundle. but i cant get custom font in settings.enter image description here

but i want to display like this.

enter image description here

please help me any body.i am writing code like this.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// Override point for customization after application launch.

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

[defaults setValue:@"0.0.1" forKey:@"languageoption"];

[defaults synchronize];

return YES;

}
Maulik Patel
  • 397
  • 4
  • 15
  • do you want to switch languages or change the font for the same language? – ShahiM Dec 02 '15 at 12:03
  • i want to switch the language.. means i want to display telugu font in my application when user click the telugu font family through my application –  Dec 02 '15 at 12:09
  • You don't have to switch fonts to change the language. The Unicode standard supports almost all languages. – ShahiM Dec 02 '15 at 12:10
  • i need to customize my font family in settings. –  Dec 02 '15 at 12:11

2 Answers2

0

If your intention is to support multiple languages in your app, there is no need to have multiple fonts, you can enable localization in your project and then its as simple as :

"Hello World" = "హలో వరల్డ్"

Check out this tutorial for a detailed explanation. Also check out this answer.

Note: its a hack but you can use an available language like arabic, and then provide Telugu strings as translations. and follow this answer to change your language on the fly.

Community
  • 1
  • 1
ShahiM
  • 3,179
  • 1
  • 33
  • 58
  • but my requirement is user want to change font family then user go to settings page and select required language. this is my requirement. so in settings ios does not provide telugu language feature –  Dec 02 '15 at 12:21
  • ShahiM i can understand what u r saying.. but my doubt if user wants to switch the language from english to telugu in settings. But in settings page there is no telugu language option. then how does user switch from english to telugu?? –  Dec 02 '15 at 12:27
  • check out the second link in my answer. there is a method to implement your own language selection logic. – ShahiM Dec 02 '15 at 12:32
0

Telugu is supported by iOS. You can find this information following this link given by Apple itself here.

But you have to custom all of this by yourself, by adding an NSArray of all languages supported by your app in the Settings.bundle, to allow the user to choose the app language, and being able to load the good font depending on the language choosen by the user.

Psykie
  • 176
  • 7