[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

I am running into the same issue when building to windows native, however the provided solution does not seem to work.
We use 2 custom fonts which are in the assets in <screenshot 1>
We use these fonts on both Labels and RichText, both use Arial instead of the custom fonts.

Editor view: <screenshot 2>
Build view: <screenshot 3>

This is the ttf file: <screenshot 4>

I was wondering if i needed to add the fonts to the native build template?
Or maybe I am missing another simple but vital step.

screenshots:

link to font file download page if needed:
https://fonts.google.com/specimen/Bebas+Neue