TextMeshPro Stylesheets
Use TextMeshPro’s “Font Weights” feature + stylesheets to simplify working with specs set by the design team.
Font Weights
When you import a family of fonts, don’t explicitly reference them all in the TMP components. Instead, make the Regular font style reference all the variations.
Stylesheets
Create a stylesheet to add snippets for each weight (300, 400, etc.), or any other combination of markdown tags.
These will appear in the “Text Style” dropdown right below the text.
To get started, open the Asset menu and go to Create -> TextMeshPro -> Style Sheet
After customizing the stylesheet, set both the font and stylesheet as defaults in TextMeshPro PlayerSettings.
Comments