BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-25-2008, 03: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, 03: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, 03: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





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