Assign Font Weights programmatically on runtime to a Runtime created TMP_FontAsset

Hi there,

I created a TMP_FontAsset on runtime using TMP_FontAsset.CreateFontAsset(font), however I’m having trouble assigning font weights programmatically to this runtime created font.

Please advise

I tried setting it on runtime but i get compile time error, any official way to do it?
@JuliaP_Unity , @uDamian

Property or indexer 'TMP_FontAsset.fontWeightTable' cannot be assigned to -- it is read only

Hey there, the use case you’re trying to use seems to not be supported. You can ask for it using the roadmap: UI Roadmap | Unity
I’m not an expert in this so I don’t know if there are other ways to work around it unfortunately.

1 Like