Function

FontWeightAdjustment

A DeviceConfigurationOverride that overrides the font weight adjustment for the contained content.

DeviceConfigurationOverrideFontWeightAdjustmentSample

@Sampled
@Composable
fun DeviceConfigurationOverrideFontWeightAdjustmentSample() {
    DeviceConfigurationOverride(DeviceConfigurationOverride.FontWeightAdjustment(200)) {
        MyComponent() // will be rendered with adjusted font weight
    }
}
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: