Skip to content

Provide bazel-maintained fallback font for PlantUML-parsing - #431

Merged
castler merged 1 commit into
eclipse-score:mainfrom
Ehrja:provide_bazel_managed_fallback_font_for_plantuml
Aug 25, 2026
Merged

Provide bazel-maintained fallback font for PlantUML-parsing#431
castler merged 1 commit into
eclipse-score:mainfrom
Ehrja:provide_bazel_managed_fallback_font_for_plantuml

Conversation

@Ehrja

@Ehrja Ehrja commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Fundamentally driven via GH-copilot: Claude Sonnet 5

Problem:
When Sphinx documentation builds render PlantUML diagrams inside a minimal container or toolchain that has no native fontconfig library and no fonts installed, PlantUML crashes instead of rendering:

Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException
	at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86)
	...
Caused by: java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1271)
	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:225)
	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:107)
	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:719)
	...

Solution:
Added a fallback mechanism of a bazel-maintained font in case no-system-font is available.

The proposed font was selected based on its license being compatible with https://www.eclipse.org/legal/licenses/

Fundamentally driven via GH-copilot: Claude Sonnet 5
@Ehrja
Ehrja force-pushed the provide_bazel_managed_fallback_font_for_plantuml branch from 088547f to dfa6459 Compare August 25, 2026 05:53
@castler
castler merged commit 9a61f42 into eclipse-score:main Aug 25, 2026
14 checks passed
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