Font problem with Confluence and AdoptOpenJDK

168 views
Skip to first unread message

Beppo Supermonkey

unread,
Oct 3, 2019, 8:31:40 AM10/3/19
to javamelody
Running JavaMelody 1.79.0 with Confluence 6.13.8 and AdoptOpenJDK jdk8u222-b10. All text within the JavaMelody graphs is rendered in a monospaced, Courier-like font. Switching to the Oracle JDK restores the normal proportional font.

evernat

unread,
Oct 5, 2019, 4:47:19 AM10/5/19
to javamelody
Hi Beppo,

Given that this is a font issue in graph and that it is fixed with Oracle JDK, it may be:
- an issue with fonts configuration in AdoptOpenJDK for your OS
- or an issue with a missing font in AdoptOpenJDK (Oracle JDK contains a licensed Lucinda font for example which AdoptOpenJDK can't have alike)
- or an issue with fonts configuration or missing fonts in your OS (the JDK fallbacks to the OS)

For example, when having no graph in Docker with alpine image or other, it is often fixed by installing fontconfig and DejaVu fonts in the OS, because they are not in the alpine image:
apk --update add \
    fontconfig \
    ttf-dejavu 

Another example for CentOS: yum install dejavu-sans-fonts.noarch dejavu-sans-mono-fonts.noarch

Of course, that's if you want to switch back to AdoptOpenJDK.

bye,
Emeric
Reply all
Reply to author
Forward
0 new messages