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
Posts: 6
Registered: ‎07-28-2008
My Device: Not Specified

How to rotate the font using RIM font api

Could somebody tell me how to rotate the font using RIM font api?

Thanks.

Developer
Posts: 191
Registered: ‎04-03-2008
My Device: Bold 9700

Re: How to rotate the font using RIM font api

Have you tried searching the forum?  There's a thread called "Rotate Font" with an example posted today of how to do just that.
New Developer
Posts: 23
Registered: ‎07-26-2008
My Device: Not Specified

Re: How to rotate the font using RIM font api

[ Edited ]
New Developer
New Developer
Posts: 29
Registered: ‎07-28-2008
My Device: Not Specified

Re: How to rotate the font using RIM font api

Here is a simple example:

 

 

Font _font90 = _font.derive( Font.PLAIN, _font.getHeight(), Ui.UNITS_px, Font.ANTIALIAS_STANDARD, Font.MONO_WIDTH_EFFECT, 0x00000000, 0xffff0000, 0x00010000, 0x00000000, 0x00000000, 0x00000000 );

 

 

 

Highlighted
New Developer
Posts: 6
Registered: ‎07-28-2008
My Device: Not Specified

Re: How to rotate the font using RIM font api

Thaks all your helps.

 

I try it, and it works. but i need that rotate based on the text's center, and not base on the left-bottom of the text.

And there is different result when run the codes at 4.2.1 and 4.5 of RIM api.