From philip.race at oracle.com Mon Oct 27 20:12:00 2025 From: philip.race at oracle.com (Philip Race) Date: Mon, 27 Oct 2025 13:12:00 -0700 Subject: Fwd: JDK-8370719: [Linux] Use /etc/os-release values for font configuration file names In-Reply-To: <84262213-ec1a-4a27-a1b3-011ab27aaab6@oracle.com> References: <84262213-ec1a-4a27-a1b3-011ab27aaab6@oracle.com> Message-ID: FYI -------- Forwarded Message -------- Subject: JDK-8370719: [Linux] Use /etc/os-release values for font configuration file names Date: Mon, 27 Oct 2025 13:10:10 -0700 From: Philip Race To: client-libs-dev at openjdk.org 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: