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
Developer
Developer
gtj
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified
Accepted Solution

FontHeight.getHeights() returns heights in what units?

Anyone know?

 

When I get the heights for any font, they don't seem to match what's displayed in Screen/Keyboard for that font.

 

thanks...george

 

Please use plain text.
Developer
kzettel
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: FontHeight.getHeights() returns heights in what units?

The getHeight() method of net.rim.device.api.ui.Font returns the height in pixels.  There a detailed explanation of fonts in the JavaDocs for Font. There is also a getHeight(int arg0) method on Font but it is not documented and therefore not supported. It may return the height in the specified units similar to the derive(int style, int height, int units) method.
Kurt Zettel | Chief Architect | Metova
www.metova.com
Please use plain text.
Developer
Developer
gtj
Posts: 319
Registered: ‎07-20-2008
My Device: Not Specified

Re: FontHeight.getHeights() returns heights in what units?

So I guess I can assume that FontHeight.getHeights() calls getHeight() on each font in the family and returns that in the array. 

 

Thanks Kurt.

 

 

Please use plain text.