Custom font in Blackberry 10

Hi I am new to Blackberry10 platform and I am stuck on adding a custom font in blackberry10. Please someone tell me how to add a custom font in blackberry 10.

+3


source to share


2 answers


According to BlackBerry, custom fonts can only be added using an OpenGL project. There is a sample SDK related project (sdkdir \ target_10_0_9_2318 \ qnx6 \ usr \ share \ samples \ ndk \ GoodCitizen).



In the main.c file, change the path of the font sent to the bbutil_load_font function to your font file.

+1


source


We can add custom fonts to QML. below is an example for this:

http://developer.blackberry.com/native/reference/cascades/bb__cascades__fontfacerule.html Download the font file (ttf) you need and which can be packaged in assets folder.



Adding a custom font in C ++ is not supported at this time.

0


source







All Articles