JDK-8370719: [Linux] Use /etc/os-release values for font configuration file names

Philip Race philip.race at oracle.com
Mon Oct 27 20:10:10 UTC 2025


I expect this will be of interest to people who work on distro packaging.

https://bugs.openjdk.org/browse/JDK-8370719

Summary
In the JDk font startup code, stop look for files like 
/etc/redhat-release which doesn't work everywhere and
look only for /etc/os-release and extract ID and ID_VERSION out of it.
If a JDK bundled with a distro includes a custom fontconfig.properties 
file it will need to be named fontconfig.$ID.$ID_VERSION.properties
No more need to "know" what names are baked into JDK source code.

-phil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20251027/07f7f0f1/attachment-0001.htm>


More information about the client-libs-dev mailing list