[Cocos Creator 3.7.1] .ttf Fonts Not Working in Simulator on Windows Platform

When using .ttf font files for labels if the font file name has space in it then it will not work in the editor and if we remove space from the font file name it will work fine in the editor but then the actual font name and font file name will be different that will cause the .ttf file to work in the editor but not in the simulator. It is happening on windows platform only and working fine on mac os.

:point_up_2: Above image shows what I mean by actual font name

:point_down: The image below shows what I mean by the font file name

font-file-name

This problem, possibly due to the TTF file settings, can be solved by referring to this solution

1 Like