I was wondering that how to load a TTF font from a absolute file path, not relative, which is usually done with [UIFont fontWithName:@"xyz"];
In cocos2d we can do it by using CCLabelBMFont that takes file as parameter, but when use CCLabelTTF it takes the name of font, not the file name.
Is there any workaround to load an external font not embedded with the application but downloaded from some resource as per need ?
Yes, you can do this.
Just copy the font to your project and add this reference in your info.plist. Then you can reference the font name just like any other system font.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With