---
title: "FontWeightAdjustment"
description: "A [DeviceConfigurationOverride] that overrides the font weight adjustment for the contained
content."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
@RequiresApi(31)
fun DeviceConfigurationOverride.Companion.FontWeightAdjustment(
    fontWeightAdjustment: Int
): DeviceConfigurationOverride
```


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

#### Parameters

| | |
| --- | --- |
| fontWeightAdjustment | the font weight adjustment to use to render the content under test. |


#### Returns

| | |
| --- | --- |
|  | a `DeviceConfigurationOverride` that specifies the font weight adjustment for the content under test. |




## Code Examples
### DeviceConfigurationOverrideFontWeightAdjustmentSample
```kotlin
@Composable
fun DeviceConfigurationOverrideFontWeightAdjustmentSample() {
    DeviceConfigurationOverride(DeviceConfigurationOverride.FontWeightAdjustment(200)) {
        MyComponent() // will be rendered with adjusted font weight
    }
}
```

