简体   繁体   中英

how to change default font size in android?

I am working on font related application in which I need to change the system font size . I couldn't find any examples in google. If anybody have experience in accessing system font please help me to solve this.Thanks in advance.

I tried the below code, but it's not working.

Settings.System.putFloat(getBaseContext().getContentResolver(),
                        Settings.System.FONT_SCALE, (float) 1.3);

Well, after searching a lot, I found this question , in which, Romain Guy has mentioned that it is not possible.

As I also mentioned in my comment up there, for this app you are referring to, they also have mentioned in the description that It may not work for all devices. Please try it and let me know (Settings > App log) if it does not work on your device. Starting from Android 4.2, this app only works on rooted devices due to Android disables 3rd party apps to change system UI configuration (color, font) unless you are using a rooted phone. It may not work for all devices. Please try it and let me know (Settings > App log) if it does not work on your device. Starting from Android 4.2, this app only works on rooted devices due to Android disables 3rd party apps to change system UI configuration (color, font) unless you are using a rooted phone.

I found another topic on here , check if that helps you .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM