cocos-engine
cocos-engine copied to clipboard
WeChat mini-game platform sets the font to be invalid
Cocos Creator version
3.8.2
System information
MacOS
Issue description
1.Create a new project, create a new Label, and use the font Siyuan Songti. 2.Publish to the WeChat mini game platform and run on real IOS devices. 3.Invalid custom font.
This problem can only appear in non-high performance mode, or high performance mode +。
The cause of the problem is that the font family of some fonts has spaces.
Just use something like ${fontSize}px "${fontFamily}"
and there will be no problem in splicing.
Relevant error log output
No response
Steps to reproduce
.
Minimal reproduction project
No response