Monocle
Monocle copied to clipboard
Monocle without pango
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
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).
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
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.