TextMeshPro preferred height incorrect

Simple setup, just a parent container with a Vertical Layout Group with some padding and content size fitter on preferred for both horizontal and vertical.

The child is just a TMPro UI component. Many arrangements of text cause it to wrap without adjusting its preferred height. This makes anything below it get cut off or wrap incorrectly.

It may be an issue with the font asset setup, though I tried different atlas padding settings and widths/heights and was unable to get it to fix. I just used the font asset creator tool to create it. Though I wasn’t able to reproduce the issue with the default LiberationSans font asset.

Using Unity 6000.2.6f2 and Unity UI 2.0.0

Tiny repro project:

TMPro Preferred Sizing.zip (1.3 MB)

Using an older unity version (and TMPro version, specifically I used 2022.3.36f1, TextMeshPro 3.0.6) to generate the font asset appears to have fixed the incorrect values. So I’m guessing something is wrong with the Font Asset Creator in the latest versions. From what I can tell I used it in the exact same way with the same settings and characters selected.