[OpenJDK 2D-Dev] RFR: 8255387: Japanese characters were printed upside down on AIX

Sergey Bylokhov serb at openjdk.java.net
Fri Nov 20 00:47:03 UTC 2020


On Mon, 16 Nov 2020 09:09:50 GMT, Toshio Nakamura <tnakamura at openjdk.org> wrote:

> Hi,
> 
> Could you review this fix? Under some special conditions, non-English characters were printed upside down.
> 
> At printing with raster image, the image was generated from bottom to top. So, each characters should also be drawn as vertical mirrored. However, freetype doesn't support to transform it if the font is using embedded bitmap and non-English. As the result, these Japanese characters were printed as upside down.
> 
> In this case, freetype should be prevented to use embedded bitmap.

test/jdk/java/awt/print/PrinterJob/PrintTranslateTest.java line 40:

> 38: import java.awt.image.BufferedImage;
> 39: 
> 40: public class PrintTranslateTest{

Does it really bind to the printing/"print/PrinterJob", look like the bug is reproduced in the common rendering as well?

-------------

PR: https://git.openjdk.java.net/jdk/pull/1218


More information about the 2d-dev mailing list