Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2016 16:25:06 +0200
From:      "Dr. A. Haakh" <bugReporter@ib-haakh.de>
To:        freebsd-java@freebsd.org
Subject:   fontmetrics missing in Printable.print
Message-ID:  <5720CBC2.2060400@ib-haakh.de>

next in thread | raw e-mail | index | archive | help
Hi,

when I try to print a graphic with text using graph2d, the fontmetrics
are all unset.

eg.
class Foo implements Printable {
[...]
public int print(java.awt.Graphics graphics, java.awt.print.PageFormat
pageFormat, int param)
            throws java.awt.print.PrinterException {
        FontMetrics fm = graphics.getFontMetrics();
        System.out.println("Ascent="+fm.getAscent());
[...]
        return java.awt.print.Printable.PAGE_EXISTS;
}
gives you "Ascent=0"

this bug does not exist in Windows.

Andreas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5720CBC2.2060400>