Cocos2dJS: Some TTF fonts work and Some don't when compiling for iOS. Why is that?

I am currently facing this problem with custom TTF fonts. I used the Marker Felt.ttf font from the examples and it works on browser and also when compiling to native iOS. But as soon as i switch the font to my another custom ttf font, it breaks and defaults to system font.

Also one thing to note, if i change the filename of the Marker Felt.ttf font and use the new name, it also breaks. Is there any other way Cocos2dx reads font on native?

I am using Cocos2dJS

Versions:
cocos2d-x-3.13.1
Cocos Console 2.1

Is anybody facing a problem, or am i missing something basic here?

@suroorwijdan,

Are you Preloading Font file in resource.js ?

For example:
{
type:“font”,
name:“Thonburi”,
srcs:["…/cpp-tests/Resources/fonts/Thonburi.eot", “…/cpp-tests/Resources/fonts/Thonburi.ttf”]
},

Nope i am not preloading the font but using it like this.

//setting font
if(cc.sys.isNative){
cc.gameData.FONT = ‘res/fonts/Marker Felt.ttf’;
} else {
cc.gameData.FONT = ‘Niagaraphobia’;
}

The thing is, why does the Marker Felt.ttf font works and not others.