stathissideris / ditaa

ditaa is a small command-line utility that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics.
GNU Lesser General Public License v3.0
924 stars 87 forks source link

Text changes size randomly #59

Open davidgiven opened 4 years ago

davidgiven commented 4 years ago

Here's an image I just created:

out

...from this:

+----+ +----+
+ 3.0| | GND+
+----+ +----+  

...using:

java -jar /tmp/ditaa-0.11.0-standalone.jar x -o out.png -s 0.75

The 3.0 text and the GND text are different sizes --- if I render as SVG, I can see that the 3.0 is 10 point and the GND is 7 point. In the full diagram (of which this is a snippet) it all looks really weird. The -s 0.75 isn't necessary, but makes things a bit more obvious as the small text is much less bold than the large text.

This is on Debian with openjdk 11.0.6-ea 2020-01-14.

Do you know what's going on (and more importantly, how to stop it)?

davidgiven commented 4 years ago

(edited post because I uploaded the wrong image...)