10-29-2009, 02:43 PM
Knows Where the Search Button Is
Join Date: Oct 2008
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Font Problem
Please Login to Remove!
I am loading fonts and I can't seem to scale them
net.rim.device.api.ui.Font font10 = fontFamily.getFont(FontFamily.TRUE_TYPE_FONT,10,Ui .UNITS_pm);
net.rim.device.api.ui.Font font12 = fontFamily.getFont(FontFamily.TRUE_TYPE_FONT,12,Ui .UNITS_pm);
net.rim.device.api.ui.Font font14 = fontFamily.getFont(FontFamily.TRUE_TYPE_FONT,14,Ui .UNITS_pm);
If I use UNITS_px they are really small.
I then loop through loading them changing the font height up to 40
I do this on the emulator and it works.
I do this on the device and it crashes after 14
The font on the blackberry is 14 size only when I look at it in the actual screen setup.
Why would it work on the emulator and not on the device
Obviously the font size isnt' on he device but how come the UNITS_px when I specify 14 looks like half a mm tall
Really really small.
I have to actualy load 40 size in order to have it about 1/8inch tall
Thanks very much