How to programmatically change font settings of Device: font style and font size?
How do we change font type and font size programmatically? I am not referring to changing the font style of a textview or editText. I want to change the global font settings , toggling between font types and font sizes on a button click in my app. I tried checking the Settings.System attributes but I could not find them. Any ideas? You can change system font using below code Settings.System.putFloat(getBaseContext().getContentResolver(), Settings.System.FONT_SCALE, (float) 1.0); and after this give permission in menifest file <uses-permission android:name="android.permission.WRITE_SETTINGS"/>