Function

FontScale

FontScale

Source set: Android
public fun DeviceConfigurationOverride.Companion.FontScale(
    fontScale: Float
): DeviceConfigurationOverride

FontScale

Source set: Common
public 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.

Return

a DeviceConfigurationOverride that specifies the font scale for the content under test.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: