WeChat mini-game platform sets the font to be invalid
Author: smallmainCreated Mar 14, 2024Updated Sep 28, 2026
LabelsBugEnv: MiNiGame
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
Source: cocos/cocos-engine