I have been assuming that this is a bug in the Linux JDK1.2 prerelease.
If I run the following on Linux/Java1.2:
import java.awt.*;
public class FT
{
public static void main(String[] args)
{
Font f = new Font("Monospaced",Font.PLAIN,14);
FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(f);
System.out.println("Height is " + fm.getHeight());
System.out.println("Leading is " + fm.getLeading());
System.out.println("Ascent is " + fm.getAscent());
System.out.println("Descent is " + fm.getDescent());
}
}
I get:
Height is 28
Leading is 0
Ascent is 17
Descent is 11
Whereas on WinNT JDK12, I get
Height is 20
Leading is 0
Ascent is 15
Descent is 5
This is all despite the fact that the TTF font files shipped in both
distributions have the same size
and checksums.
Rob
corey wrote:
> Hi gang,
>
> I'm having some trouble with the default fonts in
> the JDK1.2. Seems like the ascents and decents for
> TimesRoman fonts (possibly others) are very large
> and it makes my textareas appear to have large gaps
> between the lines.
>
> Any help would be greatly appreciated.
>
> --Corey
>
> /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */
> /* AT&T NCS | [EMAIL PROTECTED] */
> /* Alpharetta, Ga 30005 | [EMAIL PROTECTED] */
> /* (770)750-8071 | New rays from an ancient sun (JS) */
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]