# TextAutoSizeDefaults

# TextAutoSizeDefaults

Artifact:[androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/text/TextAutoSize.kt+class:androidx.compose.foundation.text.TextAutoSizeDefaults)  
Added in[1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.8.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  object TextAutoSizeDefaults
  ```

*** ** * ** ***

Contains defaults for[TextAutoSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSize)APIs.

## Summary

|                                    ### Public properties                                     |
|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [TextUnit](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit) | [MaxFontSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSizeDefaults#MaxFontSize()) The default maximum font size for[TextAutoSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSize). | Cmn |
| [TextUnit](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/TextUnit) | [MinFontSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSizeDefaults#MinFontSize()) The default minimum font size for[TextAutoSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSize). | Cmn |

## Public properties

### MaxFontSize

Cmn  
Added in[1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.8.0)  

```
val MaxFontSize: TextUnit
```

The default maximum font size for[TextAutoSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSize).  

### MinFontSize

Cmn  
Added in[1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.8.0)  

```
val MinFontSize: TextUnit
```

The default minimum font size for[TextAutoSize](https://developer.android.com/reference/kotlin/androidx/compose/foundation/text/TextAutoSize).