I would like to use some custom fonts in a BlackBerry application I'm working on. There appear to be 11 built-in fonts, but they don't look great; I'd like to use an anti-aliased font that matches the corporate look of my customer.
The BlackBerry APIs do not seem to offer a way to import additional fonts, and the Font and FontFamily classes do not have public constructors, so I can't create my own fonts, either.
Is there a way to use non-standard fonts with the BB APIs and widgets? All I could find is the Plazmic Theme Builder, but from what I understand, that allows you to customize the entire phone, while I am looking for a way to apply a corporate theme to just one application.
Any thoughts would be greatly appreciated.
Thanks,
Hey, your BitmapFont class looks interesting.
How do actually use it to display a font though? Can you then use it like the net.rim.device.api.ui.Font class or did you have to extend the TextField/RichTextField class and override the draw() function, for example?
This class works in midlet. We don't use any net.rim.device.api.ui classes.
For paint char we using functions of class javax.microedition.lcdui.Graphics:
clipRect
drawImage
setClip
and other
(sorry, I can't upload sources :( because it isn't my own code)