Help needed with PlantUML macro in Confluence

0 votes
asked May 16, 2019 in Question / help by Bianca Georgescu (120 points)

Hello,

We're running a Confluence server version 6.13.4. A user reported having issues with rendering Japanese characters inside the PlantUML macro. We've tested it out on 2 different Confluence instances, both with the same version.

On the first one, which is the live one (the same one the user reported the issue for) the rendering is different/not correct (see plantUML_SVG_broken.PNG and plantUML_PNG_broken.PNG), but on our test instance all seems to work just fine (see plantUML_SVG_good.PNG and plantUML_PNG_good.PNG).
Even though we think we've replicated the same settings on both instances, something's definitely missing and we would need your help to figure out what.

What we did so far:
- upgrade the plugin to the same version on both instances
- made sure we have the same fonts loaded on both of the instances
- checked the encoding level of each instance: both are UTF-8
- checked the parameters of the JVM, we have -Dfile.encoding=UTF-8

Confluence PlantUML PLugin version: 6.31

Graphviz versions on production:
graphite2.x86_64                     1.3.10-1.el7_3                   @base
graphviz.x86_64                      2.30.1-21.el7                    @base
graphviz-gd.x86_64                   2.30.1-21.el7                    @base
graphviz-graphs.x86_64               2.30.1-21.el7                    @base

Graphviz versions on test:
graphite2.x86_64                      1.2.2-5.el7                     @anaconda
graphviz.x86_64                       2.30.1-19.el7                   @base
graphviz-gd.x86_64                    2.30.1-19.el7                   @base
graphviz-graphs.x86_64                2.30.1-19.el7                   @base

Thank you!

1 Answer

0 votes
answered May 16, 2019 by plantuml (294,960 points)
It looks like a font issue : you do not have the same fonts installed on both config.

You can use the following script to test your fonts http://www.plantuml.com/plantuml/uml/oyaiBadBpojHUDoq_N7pdiTD6nytRtxSjFFfxCq0

A side note, unrelated to this font issue : you should upgrade de GraphViz 2.38

Hope this helps !
commented May 20, 2019 by anonymous
Hi,

Thanks for the answer. We checked the fonts and we have the same fonts on both the test and the production instance. Also, the graphviz version is the same on both, but on the production the PlantUML still doesn't render correctly. Anything else that we should check besides fonts?
commented May 20, 2019 by plantuml (294,960 points)

Yes, you should post here a screenshoot of the following diagram:

@startuml
listfont
@enduml

On your both environment.

...