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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
sowjanya1919
Posts: 60
Registered: ‎08-21-2012
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

Please use plain text.
Developer
simon_hain
Posts: 13,775
Registered: ‎07-29-2008
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
Please use plain text.