BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-10-2007, 01:29 AM   #1
abhilasha_dubey
New Member
 
abhilasha_dubey's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: CLDC
Posts: 8
Default

Please Login to Remove!

Dear all,
I have designed an application in j2me for Blackberry 8800/8700.
In this if i set the font to the default font of the device.Now if the user changes the default font of the device then the display of the text is changing and the UI is messed up.How i prevent this effect.Like even if the user changes the device font and its size ,the application should take up one particular font(say BBMillbank) and display its text accordingly. I am new to mobile programming plzzzzzz help me out ???
Offline  
Old 10-10-2007, 01:48 AM   #2
John Clark
BBF Moderator
 
John Clark's Avatar
 
Join Date: Jun 2005
Model: Z30
OS: 10.2.1.x
PIN: s & needles
Carrier: AT&T
Posts: 34,720
Default

** Moved to Developer's Forum **
Offline  
Old 10-10-2007, 02:14 AM   #3
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

Code:
ff = FontFamily.forName("BBMillbankTall");  
font = ff.getFont(FontFamily.SCALABLE_FONT, 12).derive(Font.BOLD);
Font.setDefaultFont(font)
this would set the font in your application to BBMillbankTall, 12, bold.
You can also set the font for single elements like fields etc.

Cosider it well to use a fixed layout though as different devices have different screen sizes and a solution that fits one may look horrible on another. You can maybe integrate an option screen that allows to set the used font internally.
__________________
java developer, Devinto, hamburg/germany
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


AVAYA 9620L VoiP IP Display Network Phone #700461197 NEW OPEN BOX L@@K picture

AVAYA 9620L VoiP IP Display Network Phone #700461197 NEW OPEN BOX L@@K

$49.99



PANASONIC KX-NT553 Business IP Handset VoIP Office Phone picture

PANASONIC KX-NT553 Business IP Handset VoIP Office Phone

$49.99



Polycom Vvx 601 VoIP 16 Line Business Phone 4.3

Polycom Vvx 601 VoIP 16 Line Business Phone 4.3" HD Touchscreen PoE With Stand

$28.95



Used RingCentral Polycom VVX 300 6-Line VoIP IP SIP Business Media Phone picture

Used RingCentral Polycom VVX 300 6-Line VoIP IP SIP Business Media Phone

$18.50



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99



Yealink SIP-T58A Gigabit IP VOIP Phone - Excellent Condition picture

Yealink SIP-T58A Gigabit IP VOIP Phone - Excellent Condition

$62.99







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