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
New Developer
ajuj20
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Need to use Custom Font

[ Edited ]

Hi ,

        Since i need to develope applcation for one the brand they need only there Registered Font to be used in application.

 

Please let me know ,if some one can help to get ."How can i use custom font in bb app ?" i need to cover from 4.3 onwards

 

 

ajay

Please use plain text.
Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.634 Dev OS, Z30 (STA100-5)-10.3.1.634 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Need to use Custom Font

Up until and including 4.7 you cannot use custom fonts... easily. You need to make a bitmap font, then create your own drawString function that will use the bitmap font to draw the chars to the screen. If you have 5.0 or greater then you can load your own TrueType font and use it as you would any other font.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
New Developer
ajuj20
Posts: 43
Registered: ‎05-12-2009
My Device: Not Specified

Re: Need to use Custom Font

How can i use BMF files in BB to devleop my app?

 

ajay

Please use plain text.
Developer
Rajat_10Sep
Posts: 696
Registered: ‎12-02-2008
My Device: Not Specified

Re: Need to use Custom Font

Hi,

 

Have a look at this link from j2me section

 

http://developers.sun.com/mobility/midp/articles/termemulator3/

 

you can take an idea how to use it.

Regards,
Rajat Gupta.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
Please use plain text.