Just check what sizing the fontScale is set to and change it to whatever we want. Then We have to reapply the configuration. This is an example method to put into an activity:
override fun attachBaseContext(newBase: Context?) {
super.attachBaseContext(newBase)
val conf = newBase!!.resources.configuration
if (conf.fontScale > 1) {
conf.fontScale = 1F
applyOverrideConfiguration(conf)
}
}