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: 109
Registered: ‎08-21-2012
My Device: Blackberry curve
My Carrier: company

ttf fonts and otf fonts

i want use arial.ttf in my application(os 5) and also Myriad Pro font . Can any one tell me is it possible to use arial font in my application, as i came to know that more than 90kb font cannot be used. Also i want to know how to use Myriad Pro font in my applicaiton

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: ttf fonts and otf fonts

according to this API doc fonts are limited to 6mb
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/FontManager.html#load(java....

if you check the 5.0 API you see 60kb as a limit:
http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/FontManager.html#load%28jav...

it seems to depend on your target OS how big the font can be.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter