Skip to main content

Roman Kennke: Subtleties in Java text rendering

Roman Kennke has been investigating Subtleties in Java text rendering:

Lately Mario and I have been looking a little at a rendering bug in OpenJDK. The above is with OpenJDK on Linux, below is the same with closed JDK. As can be seen, in the above picture the undershoot of the ‘g’ is cut off. Mario did a lot of research and debugging in the low level Freetype font code. There are a lot of little things to consider, and for quite a long time it seemed that this bug has something to do with the Freetype font scaler. Let’s have a look at how the bounds appear for the ‘g’ glyph...

Community: OpenJDK