Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 80
Registered: ‎05-22-2011
My Device: Blackberry Torch
My Carrier: Airtel
Accepted Solution

How to install fonts in BlackBerry?

Hello everyone,

 

I would like to use 'Source sans pro' font in my application. When checked, I could understand that it is not readily available in BlackBerry phones. Is there a way to install the .ttf file in BB?

 

Any help would be much appreciated. 

Thank you in advance. 

 

Jayakrishnan Salim. 

Highlighted
Developer
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900
My Carrier: developer

Re: How to install fonts in BlackBerry?

Developer
Posts: 80
Registered: ‎05-22-2011
My Device: Blackberry Torch
My Carrier: Airtel

Re: How to install fonts in BlackBerry?

Thanks a lot Robert. Let me try that code. 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to install fonts in BlackBerry?

Note the size restrictions in the documentation for FontManager load.  You will find the 7.1 version here:

 

http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/FontManager.html

 

You will need to check that the OS levels you support can cope with the size of Font you are trying to load because in OS 5.0, the size supported was 60-90 KB which most standard fonts will exceed. 

Developer
Posts: 80
Registered: ‎05-22-2011
My Device: Blackberry Torch
My Carrier: Airtel

Re: How to install fonts in BlackBerry?

Thanks Peter.