Font display under Linux with Java Runtime

Condon Thomas A KPWA tcondon
Mon May 17 12:00:59 PDT 2004


James,

> I am using Linux Fedora Core 1 with Mozilla 1.4.1 and 
> j2re-1.4.2_03-fcs
> with a java based internet banking package.
> 
> I am suffering from a font misalignment in the text boxes as 
> shown here
> http://www.jamesmcdonald.id.au/tmp/java-error.png. It appears 
> as if the 
> font is either too large for the text field or misaligned which makes 
> the application almost unuseable under linux.
> 
> Can any of you erstwhile list users point me in the direction of a 
> fix/workaround? (i.e. is there some sort of jre parameters to 
> fix it, I 
> am NOT a java user in general)

There are several possible solutions if you were working with the code:

First, there is the vertical alignment of the text in this box.  Set it to
top align and see if that helps.

Second, just from what little I can see, it looks like the font may be too
big to fit in the box size you've got.  Did you create the box size from the
font you are using in it?  That would help it fit.  You can get the size of
a text string of a certain font, add some padding (~20%) and create a text
entry box based on that size.

Third, it looks like you may have cell padding of some sort in the box (that
would move the writing down like this and still keep if off the bottom).
This may need to be reduced.

Without knowing more about the code you are working with I can't tell which
of these may be the most successful.  You could reduce the size of the font
until it all shows and then see how much you have to fix spacing and
alignment.

Now, if you are not working with the code, the most probable cause is that
the specific font used in this box is not available to your JRE.  In that
case it will use a default font type and size.  To fix this you need to
install it where the JRE expects to find fonts, or to point the JRE font
path to where the font is (if it is already on your machine).

HTH.


In Harmony's Way and In A Chord,

Tom  ;-})

Proud Member of the Kitsap Chordsmen
Registered Linux User # 154358
You Can't Catch A Virus From Plain Text Email!



More information about the Linux-users mailing list