cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

WeChat mini-game platform sets the font to be invalid

Open smallmain opened this issue 11 months ago • 3 comments

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

smallmain avatar Mar 14 '24 08:03 smallmain