Skip to content

Update to 28-ea+24 - #559

Merged
tianon merged 2 commits into
docker-library:masterfrom
infosiftr:28-ea+24
Nov 18, 2026
Merged

tianon merged 2 commits into
docker-library:masterfrom
infosiftr:28-ea+24

Conversation

@tianon

@tianon tianon commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Install dejavu-sans-fonts on Oracle Linux 10+

Oracle Linux 10's fontconfig only pulls in variable fonts, and openjdk/jdk@c678ea9 (JDK-8396849, openjdk/jdk#33761, first in 28-ea+24) makes the JDK skip variable fonts for the primary slot of each logical font, so java-uimanager-font fails with Fontconfig head is null. A static font restores a usable primary font, matching what Oracle Linux 9 and Debian already get.

	'java-uimanager-font' [5/6]...Could not get the default font's family
java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1242)
	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:207)
	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:103)
	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:697)
	at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:341)
	at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
	at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
	at java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
	at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
	at java.desktop/java.awt.Font.getFont2D(Font.java:522)
	at java.desktop/java.awt.Font.getFamily(Font.java:1296)
	at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1270)
	at java.desktop/java.awt.Font.getFamily(Font.java:1262)
	at container.main(container.java:21)
Error making a Metal look/feel, setting it to the UIManager, or getting its font...
java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1242)
	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:207)
	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:103)
	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:697)
	at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:341)
	at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
	at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
	at java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
	at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
	at java.desktop/java.awt.Font.getFont2D(Font.java:522)
	at java.desktop/java.awt.Font.getFamily(Font.java:1296)
	at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1270)
	at java.desktop/java.awt.Font.getFamily(Font.java:1262)
	at container.main(container.java:35)
failed

Assisted-By: "claude my eyes right out"

Oracle Linux 10's `fontconfig` only pulls in variable fonts, and openjdk/jdk@c678ea9 (JDK-8396849, first in 28-ea+24) makes the JDK skip variable fonts for the primary slot of each logical font, so `java-uimanager-font` fails with `Fontconfig head is null`.  A static font restores a usable primary font, matching what Oracle Linux 9 and Debian already get.

```console
	'java-uimanager-font' [5/6]...Could not get the default font's family
java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1242)
	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:207)
	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:103)
	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:697)
	at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:341)
	at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
	at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
	at java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
	at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
	at java.desktop/java.awt.Font.getFont2D(Font.java:522)
	at java.desktop/java.awt.Font.getFamily(Font.java:1296)
	at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1270)
	at java.desktop/java.awt.Font.getFamily(Font.java:1262)
	at container.main(container.java:21)
Error making a Metal look/feel, setting it to the UIManager, or getting its font...
java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1242)
	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:207)
	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:103)
	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:697)
	at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:341)
	at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
	at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
	at java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
	at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
	at java.desktop/java.awt.Font.getFont2D(Font.java:522)
	at java.desktop/java.awt.Font.getFamily(Font.java:1296)
	at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1270)
	at java.desktop/java.awt.Font.getFamily(Font.java:1262)
	at container.main(container.java:35)
failed
```

Assisted-By: "claude my eyes right out"
@tianon

tianon commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

(I also tried to search for upstream bugs about this in the JDK, because I think it probably should fall back to allowing these variable fonts if no other options are found, but alas, their bugtracker is currently offline.)

@tianon

tianon commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Quoting from openjdk/jdk#33761:

This fix resolves problems with styles of logical fonts on OL 10.2 - and any other Linux where a font variation is used as the first component of the Linux sans/serif/monospace desktop fonts.

It skips such initial fonts - as identified by [wght] in the name, which seems sufficient for now, although not fool proof.
The alternative is opening the fonts to see if they are variation fonts during the process of gathering the names.
That is something we don't really want to do. That's why we use fontconfig.
If we need to refine this later, we will, but hopefully before that is needed we'll have proper variation support.

@tianon
tianon merged commit b097ba0 into docker-library:master Nov 18, 2026
10 checks passed
@tianon
tianon deleted the 28-ea+24 branch November 18, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants