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
Regular Contributor
jayakrishnan_salim
Posts: 61
Registered: ‎05-22-2011
My Device: Blackberry Torch
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. 

Please use plain text.
Developer
robert30
Posts: 191
Registered: ‎04-02-2013
My Device: BlackBerry Bold 9900

Re: How to install fonts in BlackBerry?

Please use plain text.
Regular Contributor
jayakrishnan_salim
Posts: 61
Registered: ‎05-22-2011
My Device: Blackberry Torch

Re: How to install fonts in BlackBerry?

Thanks a lot Robert. Let me try that code. 

Please use plain text.
Developer
peter_strange
Posts: 19,609
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. 

Please use plain text.
Regular Contributor
jayakrishnan_salim
Posts: 61
Registered: ‎05-22-2011
My Device: Blackberry Torch

Re: How to install fonts in BlackBerry?

Thanks Peter. 

Please use plain text.