Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest update breaks Java font handling (e.g. renders Jasper Reports unusuable) #62

Open
FerhatSavci opened this issue Sep 19, 2017 · 0 comments

Comments

@FerhatSavci
Copy link

FerhatSavci commented Sep 19, 2017

The "stix" fonts coming with the underlying CENTOS 7.4 release mess up Java font handling.

java.lang.ArrayIndexOutOfBoundsException: 0
at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
at sun.font.Font2D.getFontMetrics(Font2D.java:415)
at java.awt.Font.defaultLineMetrics(Font.java:2176)
at java.awt.Font.getLineMetrics(Font.java:2246)
at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.determineLeading(SimpleTextLineWrapper.java:390)
at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.getGeneralFontInfo(SimpleTextLineWrapper.java:342)
...

Something along the lines of:

USER root
RUN yum erase stix-fonts.noarch
RUN yum erase stix-math-fonts.noarch

should help. [Edit: but doesn't. For some inexplicable reason, the stix fonts are a dependency of openjdk and openjdk is uninstalled when you remove the fonts ???!]

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

No branches or pull requests

1 participant