Created attachment 215521 [details] patch file Attached patch is a port of bug #215636 to OpenJDK11. This brings font rendering in Java apps on par with OpenJDK8 with FONTCONFIG knob ON and linux. poudriere builds OK on 121a, 113i; "works for me" with various JetBrains IDEs on 12.1-STABLE amd64.
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/160797165
Looks ok to commit to me. Have you tried it on the newer ports?
(In reply to Greg Lewis from comment #2) Builds and works fine for me with java/openjdk11 11.0.7+10.2
By newer ports, I meant have you tried it with openjdk12, 13 and 14? Anyway, feel free to commit this.
A commit references this bug: Author: dmgk Date: Thu Jul 2 23:31:39 UTC 2020 New revision: 541062 URL: https://svnweb.freebsd.org/changeset/ports/541062 Log: java/openjdk11: Add fontconfig support PR: 247238 Approved by: java (glewis) Changes: head/java/openjdk11/Makefile head/java/openjdk11/files/patch-make_lib_Awt2dLibraries.gmk head/java/openjdk11/files/patch-src_java.desktop_share_native_libfontmanager_freetypeScaler.c
Thanks for the approval, committed. I'll look into porting this to non-EOL JDK (java/openjdk14) over the weekend.