FontScale
Function
Common
expect fun DeviceConfigurationOverride.Companion.FontScale(
    fontScale: Float
): DeviceConfigurationOverride
A DeviceConfigurationOverride that overrides the font scale for the contained content.
Parameters
| fontScale | the font scale to use for the content under test. | 
Returns
| a DeviceConfigurationOverridethat specifies the font scale for the content under test. | 
Android
actual fun DeviceConfigurationOverride.Companion.FontScale(
    fontScale: Float
): DeviceConfigurationOverride
Code Examples
DeviceConfigurationOverrideFontScaleSample
@Composable
fun DeviceConfigurationOverrideFontScaleSample() {
    DeviceConfigurationOverride(DeviceConfigurationOverride.FontScale(1.5f)) {
        MyScreen() // will be rendered with a larger than default font scale
    }
}
