Hi I am new to blackberry10 platform and I am stuck with adding custom font in blackberry10. Please anybody tell me how to add custom font in blackberry 10.
Asked
Active
Viewed 2,178 times
2 Answers
1
According to BlackBerry, custom fonts can only be added using an OpenGL project. There is a sample project bundled with the SDK (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 that of your font file.

barry
- 4,037
- 6
- 41
- 68
-
but i am searching for loading font from cascades – pranavjayadev Feb 05 '13 at 10:49
-
They are adding to future releases for the cascades I thin so,check the https://developer.blackberry.com/cascades/download/roadmap/ – Rakesh Feb 06 '13 at 10:28
-
where is that written, that you can only add it using OpenGL? – desgraci Sep 04 '13 at 21:53
-
@desgraci BlackBerry informed me. This may no longer be the case though – barry Sep 05 '13 at 06:24
0
We can add custom fonts in QML. link below provides a sample for the same :
http://developer.blackberry.com/native/reference/cascades/bb__cascades__fontfacerule.html Download the font file (ttf) you need and that can be packaged in the assets folder.
Adding a custom font in C++ is not supported as of now.

cmr1990
- 1