Closed qwert2003 closed 5 years ago
I've made a quick test with GeoGebra 5.0.426.0 (which uses JLM v1) and JRE11.0.2.9.3 from https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html and it seems to work OK exporting to PNG and SVG using FreeHEP
Thanks for your encouraging response. Indeed, with the JRE11 versions "Corretto-11.0.2.9.3", both on Linux (OpenSuse Leap 42.3) and Windows (10), the issue does not happen. The rendering is correct. I am quite happy about that, as the issue apparently broke an important feature (TeX rendering) of my project drawj2d.
The issue still occurs on Linux using the JRE11 (OpenJDK 64-Bit Server VM (build 11.0.2+7-suse-114.20-x8664, mixed mode)) provided by the OpenSuse repo http://download.opensuse.org/repositories/Java:/Factory/openSUSE_Leap_42.3/ .
A question remains. Does jlatexmath rely on any default font metrics or similar?
I can't think of anywhere it relies on defaults.
Given https://www.redhat.com/en/about/press-releases/leadership-openjdk-8-and-openjdk-11-transitions-red-hat I would test on Red Hat and if it works there then it's a bug with OpenSuse
I've reported the issue to a OpenSUSE "java-11-openjdk" package maintainer.
There is a rendering issue that occurs with JRE11, but not with JRE8 (or 1.7). It happens when doing vector rendering, e.g. using any of the following Graphics2d backends: epsgraphics, freehep, jfreesvg, orsonpdf, jtikz. But none of this backends is affected when using g.drawString() instead of jlatexmath.
png output (ok for both JRE8 and JRE11):
JRE 11 (distorted): out2_JRE11_eps.pdf
JRE 8 (ok): out2_JRE8_eps.pdf
Unfortunately I was not able to track down the issue.
Example code (showIssue2.zip):