TextMeshProUGUI & IMeshModifier

Take a look at the example scene Animating Vertex Attributes and related scripts included in the TMP Examples & Extras. This provides a good example of how to modify the text geometry.

There is also a new callback OnPreRenderText() referenced in the following thread .

Using the above callback would enable you to modify the text geometry when the text changes. This works with both and text components.