8256264: Printed GlyphVector outline with low DPI has bad quality on Windows #1183
Printing text using GlyphVector outline has bad quality on printers with low DPI on Windows.
To reproduce the issue run the PrintGlyphVectorOutlineSample file on Windows and select a low DPI
It is also possible to reproduce the issue running the sample and printing the text to PDF: fill-glyph-vector-outline.png
The proposed fix introduce "sun.java2d.print.enablePathPrecisionScale" property which being enabled
See the fill-glyph-vector-outline-enable-path-scale-factor.png screenshot which shows how the GlyphVector outline is filled after the fix with the enabled "sun.java2d.print.enablePathPrecisionScale" option.
fill-glyph-vector-outline-diff.png shows difference of GlyphVector outline printing before and after the fix.
The text was updated successfully, but these errors were encountered:
I prepared a simple print test sample which uses 4 different fonts (plain and bold) with different sizes and prints 640 lines on 10 pages.
I run the sample with and without the fix to PDF and measured the time which is used by the deviceFill() method (it both converts the shape to path and fills it):
The average time without the fix: 2.77s (min 2.74s, max 2,78)
I removed the
@AlexanderScherbatiy This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 378 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
@AlexanderScherbatiy Since your change was applied there have been 378 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit d6dd440.