---
title: "rememberAnimatedTextFontRegistry"
description: "Generates an [AnimatedTextFontRegistry] to use within composition.

Start and end of the animation is when the animatable is at 0f and 1f, respectively. This API
supports overshooting, so a generated font can be extrapolated outside
[startFontVariationSettings] and [endFontVariationSettings] range, developers need to make sure
the given font supports possible font variation settings throughout the animation."
type: "composable"
---

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


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@Composable
@RequiresApi(31)
public fun rememberAnimatedTextFontRegistry(
    startFontVariationSettings: FontVariation.Settings,
    endFontVariationSettings: FontVariation.Settings,
    textStyle: TextStyle = LocalTextStyle.current,
    startFontSize: TextUnit = textStyle.fontSize,
    endFontSize: TextUnit = textStyle.fontSize,
): AnimatedTextFontRegistry
```


Generates an `AnimatedTextFontRegistry` to use within composition.

Start and end of the animation is when the animatable is at 0f and 1f, respectively. This API
supports overshooting, so a generated font can be extrapolated outside
`startFontVariationSettings` and `endFontVariationSettings` range, developers need to make sure
the given font supports possible font variation settings throughout the animation.

#### Parameters

| | |
| --- | --- |
| startFontVariationSettings | Font variation settings at the start of the animation |
| endFontVariationSettings | Font variation settings at the end of the animation |
| textStyle | Text style to be used for the animation |
| startFontSize | Font size at the start of the animation |
| endFontSize | Font size at the end of the animation |





