0

I want to know is there any Font Private API or Framework that can change or replace font for all entire iOS systems font like safari , mail etc...?

It's fine for review because i am not upload to App Store.

I just want to use only myself.

Fire Fist
  • 7,032
  • 12
  • 63
  • 109

2 Answers2

-1

I haven't tried this, but you could create a category for UIFont and replace the +systemFontOfSize: method implementation (and maybe the one for bold and italic as well).
Most controls should be using these methods.

Edit: tested, seems to work well. Just make sure to replace the methods for bold and italic as well.

@interface UIFont(Extra)

@end

@implementation UIFont(Extra)

+(UIFont *)systemFontOfSize:(CGFloat)size{
    return [UIFont fontWithName:@"Amelie" size:size];  // note that "Amelie" is a custom font, doesn't come by default with iOS.
}
+(UIFont *)boldSystemFontOfSize:(CGFloat)size{
    return [UIFont fontWithName:@"Amelie" size:size];
}
@end
alex-i
  • 5,406
  • 2
  • 36
  • 56
  • that can replace or change entire system font bro? And how to use it? :D – Fire Fist Nov 04 '13 at 10:43
  • Well, you could try it, there's only a few lines of code. Standard controls use these methods. If however you have custom controls that explicitly call `[UIFont fontWithName:@"x" size:y]`, than the `x` font will be used for those controls (you could also replace `-fontWithName:size:` if this is a problem). – alex-i Nov 04 '13 at 10:48
  • yes , i tried with your code and it doesn't change at all bro. my app is also running in background and i tried with safari browser in my simulator , it doesn't change. How can i do that? – Fire Fist Nov 04 '13 at 10:51
  • I thinks you and i are misunderstanding. i mean i want to change all entire system font like safari , mail etc with Private API. :D – Fire Fist Nov 04 '13 at 10:53
  • Oh, I see.. I thought you want to change it for your app only. – alex-i Nov 04 '13 at 10:56
-1

This is not possible. You do not have access to any other app / system code from your app. This is definitely not possible from Xcode and at the very least would require the device to be jailbroken.

Robert J. Clegg
  • 7,231
  • 9
  • 47
  • 99