BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-25-2008, 02:19 AM   #1 (permalink)
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ListField with unicode characters

Please Login to Remove!

I have a dictionary application for languages such as German and French, and I'm using a ListField to display their contents.

The problem comes when I display some special characters such as (A with umlaut - German) and (E with acute - French): They are too high, and the top part gets clipped.

It seems in the font class, the font height is always for the "base" Latin characters, ignoring umlaut or acute for example. Anyone know how (if possible) I can get the correct height?

Cheers,
IRL
Offline  
Old 04-25-2008, 02:30 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

if font,getheight does not return the correct value you should work around it and just add a fixed percentage to the value to cover it.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 04-25-2008, 02:37 AM   #3 (permalink)
Knows Where the Search Button Is
 
irlennard's Avatar
 
Join Date: Jan 2008
Location: Berlin
Model: 9000
Carrier: T-Mobile
Posts: 32
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, I tried that already. Multiplying the height by 1.5 seems to do the trick. I was just wondering if there was a better way.

A TextField for example somehow knows when I enter on a line. The line height suddenly increases to accommodate the extra height of this character.

Cheers,
IRL
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

LOT OF 25 Cisco CP-7942G Unified IP Phone - voip phone - used
$199.0
LOT OF 25 Cisco CP-7942G Unified IP Phone - voip phone - used pictureLOT OF 10 Cisco CP-7942G Unified IP Phone - voip phone - used
$85.0
LOT OF 10 Cisco CP-7942G Unified IP Phone - voip phone - used pictureCisco Linksys SPA942 VOIP SIP 4-line IP Display Telephone Phone with Stand
$22.0
Cisco Linksys SPA942 VOIP SIP 4-line IP Display Telephone Phone with Stand pictureAvaya 9640 VoIP Phone 700383920 with B129 Conference Speaker Adjunct 700504381
$29.95
Avaya 9640 VoIP Phone 700383920 with B129 Conference Speaker Adjunct 700504381 pictureCisco CP-7936G VoIP Conference IP Phone 7936 station Base only.
$14.99
Cisco CP-7936G VoIP Conference IP Phone 7936 station Base only. picture






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