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

12 - Genuine OEM NOS IBM 5122-C Carbon Ribbon Cartridge 1136201 Typewriter Ink
$88.99
12 - Genuine OEM NOS IBM 5122-C Carbon Ribbon Cartridge 1136201 Typewriter Ink  pictureQuietwriter Typewriter Ribbon 1299602 Correctable Ribbon Green Box Genuine OEM P
$149.0
Quietwriter Typewriter Ribbon 1299602 Correctable Ribbon Green Box Genuine OEM P pictureGenie 14559, Shaft and SPRCKT, Winch, LL/IBM, OEM, Boom Lift
$1012.56
Genie 14559, Shaft and SPRCKT, Winch, LL/IBM, OEM, Boom Lift pictureGenie 14270, Platform Support Weldment, GLL/IBM, OEM, Boom Lift
$808.54
Genie 14270, Platform Support Weldment, GLL/IBM, OEM, Boom Lift pictureOEM LEXMARK IBM Personal Wheelwriter 1000 Part: Right Hand Feed Roll Hanger Assy
$0.99
OEM LEXMARK IBM Personal Wheelwriter 1000 Part: Right Hand Feed Roll Hanger Assy picture






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