@onselakin, you’re saying that you’re not using a browser, so I’m assuming that are you compiling for native. In that case cocos works with searchPaths.
In your main.js there’s probably the following lines…
searchPaths.push(“res”);
searchPaths.push(“src”);
When cocos tries to load resources it tries to resolve paths relative to the searchpaths. So in case of the font the path should be
@araker Thank you. I tried almost all of the combinations and still no luck. Tried with the “/” before the folder name, tried without it, moved the ttf file into the res folder to no avail. No errors, nothing.
Also, I don’t have any searchPath registrations in my main.js under cc.game.onStart but all of the other resources work without problems. Please note that I haven’t changed anything on that file, it’s coming from the project template as is.