BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-09-2007, 07:09 AM   #1
arifzaman
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Question Font Style!

Please Login to Remove!

Hi all,

I've already changed my default FONT by using "net.rim.device.api.ui.Font" and "net.rim.device.api.ui.FontFamily" classes for my application.

Now, my intension is to retrieve new FONT that should be as like as my default settings which I made before in my application, but only differerece would be in FontStyle as ITALIC. I know this can be done by going with the following code:

Code:
Font.setDefaultFont(defaultFont.derive(Font.ITALIC));
But I don't want to do that.

I do like to use "javax.microedition.lcdui.Font" class to meet my requirements. Before that Ixxx8217;ve to ensure that the settings shouldn't be changed which one Ixxx8217;ve made before using "net.rim.device.api.ui.Font" and "net.rim.device.api.ui.FontFamily" classes.

I know, this is a silly question. But it's required to point to my interest. FYI, Ixxx8217;ve extends MainScreen from Canvas class.

Help me with your valuable feedback.

Thanks in advance!

Thanks,
ARIF

Last edited by arifzaman; 08-13-2007 at 12:02 AM..
Offline  
Old 08-13-2007, 01:16 AM   #2
arifzaman
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Question

Hi all,

Ixxx8217;ve gained new FONT with my expected font style by using xxx8220;public static Font getFont(int face, int style, int size)xxx8221; method of xxx8220;javax.microedition.lcdui.Fontxxx8221; class. Code is following:

Code:
Font defaultFont = Font. getDefaultFont();
Font newFont = Font.getFont(defaultFont.getFace(), STYLE_ITALIC, defaultFont.getSize());
But the problem is, it changes the size of the FONT that I made before by setting default font using net.rim.device.api.ui.Font for my application. Since getFont method of xxx8220;javax.microedition.lcdui.Fontxxx8221; requires size parameter as one of SIZE_SMALL, SIZE_MEDIUM, or SIZE_LARGE.

Is there any other option to solve this problem using xxx8220;javax.microedition.lcdui.Fontxxx8221; class? My intension is only to change STYLE of my default settings.

Any help will be appreciated!

Thanks,
ARIF
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Ignition Coil for Ford Tractor 12V 2000 3000 4000 5000 Naa600 800 1965 & Up D5TE picture

Ignition Coil for Ford Tractor 12V 2000 3000 4000 5000 Naa600 800 1965 & Up D5TE

$26.38



Ignition Coil 6 Volt Fits IH Fits FARMALL and Fits International Tractors picture

Ignition Coil 6 Volt Fits IH Fits FARMALL and Fits International Tractors

$26.36



GE CL06A300MJ Non-Reversing IEC Contactor, 110/120 VAC V Coil, 50 A picture

GE CL06A300MJ Non-Reversing IEC Contactor, 110/120 VAC V Coil, 50 A

$299.99



D4PE12029AA 6 Volt Ignition Coil Fits Ford/New Holland Tractor 600 700 800 picture

D4PE12029AA 6 Volt Ignition Coil Fits Ford/New Holland Tractor 600 700 800

$26.44



Ignition Coil 6 Volt Fits IH Fits FARMALL and Fits International Tractors picture

Ignition Coil 6 Volt Fits IH Fits FARMALL and Fits International Tractors

$37.99



Utility Aluminum Trim Coil 24

Utility Aluminum Trim Coil 24" x 40-45 FT Long with Minor Scratches and Dents

$84.95







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.