Monocle icon indicating copy to clipboard operation
Monocle copied to clipboard

Monocle without pango

Open VirtualTim opened this issue 3 months ago • 3 comments

More of a question than an issue, and I'm not even sure if this is the right place, but is it possible to build or run Monocle without the pango dependency?

This dependency comes from here - https://github.com/openjdk/jfx/blob/26%2B5/modules/javafx.graphics/src/main/java/com/sun/javafx/font/freetype/OSPango.java#L33 And I think is only loaded here - https://github.com/openjdk/jfx/blob/26%2B5/modules/javafx.graphics/src/main/java/com/sun/javafx/font/freetype/FTFactory.java#L116-L118 Where isPangoEnabled comes from here - https://github.com/openjdk/jfx/blob/26%2B5/modules/javafx.graphics/src/main/native-font/freetype.c#L677-L684 And the _ENABLE_PANGO compiler flag comes from here - https://github.com/openjdk/jfx/blob/26%2B5/buildSrc/linux.gradle#L134

VirtualTim avatar Aug 28 '25 09:08 VirtualTim

For context, I'm pretty sure pango is the only additional dependency needed to run JavaFX+Monocle in a headless environment (in my case a docker container with just java).

VirtualTim avatar Aug 28 '25 09:08 VirtualTim

Monocle is actually part of JavaFX and the TestFX team has only occasionally built the Monocle library from their code. I would recommend posting your question with the JavaFX team: https://github.com/openjdk/jfx

mvsoder avatar Aug 28 '25 15:08 mvsoder

OK, seeing as the TestFX team build from source I thought perhaps they were configuring these sort of build arguments. It's also not clear to me how supported Monocle is. It looks like JavaFX is moving from Monocle to -Dglass.platform=Headless (https://bugs.openjdk.org/browse/JDK-8324941), which is cool, but is only in JavaFX 26.

VirtualTim avatar Aug 29 '25 03:08 VirtualTim