BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-09-2007, 07:09 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

JD GOULD M 3V SOLENOID VALVE 3/4 IN. 5-125 PSI 120-240 VOLTS New Old Stock
$24.95
JD GOULD M 3V SOLENOID VALVE 3/4 IN. 5-125 PSI 120-240 VOLTS New Old Stock pictureLot of 2 Valcor Solenoid Valve 2-Way Closed 115V Part# 61P18C6
$14.0
Lot of 2 Valcor Solenoid Valve 2-Way Closed 115V Part# 61P18C6 pictureTOKYO KEIKI DIRECTIONAL CONTROL SOLENOID VALVE, DC24V METRIC TGMPC-3-ABM-BAM-51
$149.99
TOKYO KEIKI DIRECTIONAL CONTROL SOLENOID VALVE, DC24V METRIC TGMPC-3-ABM-BAM-51 pictureLOT OF 4 DYNAMCO 24VDC SOLENOID VALVES D1X346
$24.99
LOT OF 4 DYNAMCO 24VDC SOLENOID VALVES D1X346 pictureInsinger D-2943 SOLENOID WATER 3/4 24V 50/60HZ OEM BEST VALUE
$275.0
Insinger D-2943 SOLENOID WATER 3/4 24V 50/60HZ OEM BEST VALUE picture






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