How to change font size by adb command

Is there an ADB command to change the devices font size?

I want to be able to be able to change the font to any one of the options found in the UI (small, medium, huge)


Solution 1:

Working method to change the font scale (Tested on android 7.1.1):

adb shell settings put system font_scale {float_representing_the_scale}

The font scales that are presented in the settings application: (as per android 10)

  • Small - 0.85
  • Default - 1.0
  • Large - 1.15
  • Largest - 1.30