Unity 2019.4, TextMeshPro
Like change whatever font user want. For example we use Noto font in our app, and our user want to upload another font to our server, and we download them, either otf or ttf file, can TMP use these directly in runtime?
Unity 2019.4, TextMeshPro
Like change whatever font user want. For example we use Noto font in our app, and our user want to upload another font to our server, and we download them, either otf or ttf file, can TMP use these directly in runtime?
Yes. You can create font asset at runtime using the following:
// Create a new font object using one of those OS font file paths or newly imported font.
Font osFont = new Font(fontPaths[index]);
// Create new dynamic font asset.
TMP_FontAsset fontAsset = TMP_FontAsset.CreateFontAsset(osFont);