[OpenJDK 2D-Dev] Anti-aliased font in translucent BufferedImage

Janda Martin jandam at crcdata.cz
Mon Jul 20 10:52:59 UTC 2015

I have issues with anti-aliased text rendering to translucent BufferedImage. Only anti-aliasing is rendered. Will this be fixed in Java8u60?

Pseudo code
BufferedImage - INT_ARGB
clear: new Color(255, 255, 255, 0)

g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //  - independent on this setting
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT);


g2.drawGlyphVector OR g2.drawString

Java 8u45 Intel 64bit - linux

Look like     JDK-8013564 - Font rendering anti-aliasing in translucent BufferedImages broken

There is not very good workaround - fill glyph outline

Thank you

More information about the 2d-dev mailing list