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
vaidyanet
Posts: 69
Registered: ‎04-05-2010
My Device: Storm
Accepted Solution

Can we set owr own font to Graphics?

I saw there is a method with the FontManager to load the font stream into memory. Can I set the loaded font to the Graphics to draw the text in a specific font?

 

FontManager.load(stream, string, int);

 

I want to draw into the Bitmap using the custom font.

 

Thanks in advance

Sandeep

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

Re: Can we set owr own font to Graphics?

This API looks fairly readable.  Have you actually tried doing it?  Give it a try and let us know what tyou find. 

Developer
Blanc
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: Can we set owr own font to Graphics?

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

Re: Can we set owr own font to Graphics?

Great link Blanc.  Thanks for that.

Regular Contributor
vaidyanet
Posts: 69
Registered: ‎04-05-2010
My Device: Storm

Re: Can we set owr own font to Graphics?

Any workaround to load font with the size beyond the specified limit.

 

Api says FontManager.load( font stream) limit 90 K

FontManager.load( font file ) limit 60 K