Home Game Development How to cache RichText font in Cocos Creator 3.5.0 – Cocos Creator

How to cache RichText font in Cocos Creator 3.5.0 – Cocos Creator

0
How to cache RichText font in Cocos Creator 3.5.0 – Cocos Creator

[ad_1]

I attempted to make use of RichText part and use my very own font (not system font). The fonts are OK and accurately loaded after I run it on browser for debugging.

But the issue is that after I run it on the android system, the font will not be loaded and it use Arial as an alternative.

Is there any strategy to clear up it? I keep in mind that we have now Cache in Label part, however I couldn’t discovered it on RichText.

I’m making a recreation for Android system utilizing Cocos Creator 3.5.0

Check if the font-family and font-name of ttf fonts are the identical.

The Font-Family property will not be obtainable on the RichText in 3.5.0

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here