Default font used

0 votes
asked May 10, 2017 in To be sorted by anonymous
I'm facing the issue that my PlantUML diagram look different, dependent on the machine where it's executed. I guess that it's related to fonts. I don't have any custom fonts specified. So I'm using just the default settings.

Please tell me which font PlantUML is using as default.

Thanks as a lot in advance.

1 Answer

0 votes
answered May 10, 2017 by plantuml (298,440 points)
 
Best answer

The font used is the Java default font "SansSerif" which is indeed system dependant.
(see https://docs.oracle.com/javase/tutorial/2d/text/fonts.html )

You can list all fonts of your different machines with the following diagram:

@startuml
listfont
@enduml


Maybe it can help you to see which one are in common ?
You can post the different results here (or send it by mail to us) so that we can help you.

Regards,

commented May 10, 2017 by anonymous
Thanks,
the font SansSerif was missing on my build server. So it seems as if a different font was used as fallback. After installing the appropriate package it's fine now.
...