private fun adjustFontScale(configuration: Configuration) {
if (configuration.fontScale > 0.90) {
configuration.fontScale = 0.90f
val metrics = resources.displayMetrics
val wm = baseContext.getSystemService(WINDOW_SERVICE) as WindowManager
wm.defaultDisplay.getMetrics(metrics)
metrics.scaledDensity = configuration.fontScale * metrics.density
baseContext.resources.updateConfiguration(configuration, metrics)
}
}
#click Ctrl+Shift+A, then search "font" and click on "increase font size"