Настроить шрифт в Android Studio

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)
        }
    }
Light Leopard