Summary: | java/openjfx8-devel: fix pango support | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Stefan Ehmann <shoesoft> | ||||||
Component: | Individual Port(s) | Assignee: | Tobias Kortkamp <tobik> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | tobik | ||||||
Priority: | --- | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
URL: | https://reviews.freebsd.org/D11545 | ||||||||
Attachments: |
|
Created attachment 184188 [details]
demo code
Confirmed. I'll commit it ASAP. If you have time it would be nice if you can make this a pull request against the freebsd branch at https://bitbucket.org/tobik/openjfx-rt too. (In reply to Tobias Kortkamp from comment #2) Thanks for handling this. Don't have the time to create a pull request at the moment. I haven't worked with bitbucket/Mercurial before. So I'd need to educate myself first. A commit references this bug: Author: tobik Date: Tue Jul 11 13:20:18 UTC 2017 New revision: 445497 URL: https://svnweb.freebsd.org/changeset/ports/445497 Log: Add missing Pango symbols Currently Pango functions are hidden behind __linux__ and not compiled in as part of the build. Not all JavaFX applications are affected by this, but applications that do advanced text layout that require Pango internally cause an UnsatisfiedLinkError at runtime. Caused by: java.lang.UnsatisfiedLinkError: com.sun.javafx.font.freetype.OSPango.pango_ft2_font_map_new()J at com.sun.javafx.font.freetype.OSPango.pango_ft2_font_map_new(Native Method) at com.sun.javafx.font.freetype.PangoGlyphLayout.layout(PangoGlyphLayout.java:88) at com.sun.javafx.text.PrismTextLayout.shape(PrismTextLayout.java:834) at com.sun.javafx.text.PrismTextLayout.layout(PrismTextLayout.java:1064) at com.sun.javafx.text.PrismTextLayout.ensureLayout(PrismTextLayout.java:223) ... PR: 220566 Submitted by: Stefan Ehmann <shoesoft@gmx.net> Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D11545 MFH: 2017Q3 Changes: head/java/openjfx8-devel/Makefile head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-font_pango.c A commit references this bug: Author: tobik Date: Tue Jul 11 14:14:03 UTC 2017 New revision: 445500 URL: https://svnweb.freebsd.org/changeset/ports/445500 Log: MFH: r445497 Add missing Pango symbols Currently Pango functions are hidden behind __linux__ and not compiled in as part of the build. Not all JavaFX applications are affected by this, but applications that do advanced text layout that require Pango internally cause an UnsatisfiedLinkError at runtime. Caused by: java.lang.UnsatisfiedLinkError: com.sun.javafx.font.freetype.OSPango.pango_ft2_font_map_new()J at com.sun.javafx.font.freetype.OSPango.pango_ft2_font_map_new(Native Method) at com.sun.javafx.font.freetype.PangoGlyphLayout.layout(PangoGlyphLayout.java:88) at com.sun.javafx.text.PrismTextLayout.shape(PrismTextLayout.java:834) at com.sun.javafx.text.PrismTextLayout.layout(PrismTextLayout.java:1064) at com.sun.javafx.text.PrismTextLayout.ensureLayout(PrismTextLayout.java:223) ... PR: 220566 Submitted by: Stefan Ehmann <shoesoft@gmx.net> Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D11545 Approved by: ports-secteam (blanket) Changes: _U branches/2017Q3/ branches/2017Q3/java/openjfx8-devel/Makefile branches/2017Q3/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-font_pango.c |
Created attachment 184187 [details] patch to enable pango Currently the native pango support is not compiled because the related code is in a #ifdef __linux__ block. Java programs requiring pango cause an UnsatisfiedLinkError. Attached is: * a patch to enable the pango code on FreeBSD * a simple test program