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>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5720CBC2.2060400>
