Poor printing quality

Unfortunately we noticed that the printouts from Java FX are in poor quality.

After a lot of debugging we were able to narrow down the spot more precisely, but we are at the moment not able to fix this issue.

We reported this issue.

Nevertheless we are able to provide a workaround.

Left side you see the printing result in a PDF from javafx (blurry edges) and on the right side you see the sharp printing result in a PDF with the workaround applied.

Left side you see the printing result in a PDF from javafx (blurry edges) and on the right side you see the sharp printing result in a PDF with the workaround applied.

Our workaround is to add in `J2DPrinterJob.printNode ` the following code:

ppg.scale(1.00001, 1.00001);

And looks like this:

private void printNode(Node node, Graphics g, int w, int h) {
            PrismPrintGraphics ppg =
                    new PrismPrintGraphics((Graphics2D) g, w, h);
//++++++++++++START 
  ppg.scale(1.00001, 1.00001);
//++++++++++++END
            NGNode pgNode = node.impl_getPeer();
            boolean errored = false;

As you can notice on the picture of the printout above, the difference is huge in the Java FX controls.

At the moment we do not fully understand why this happened. But we tracked down the issues with the found out workaround, for easier, deeper investigation.