I get different svgs depending on where the PlantUML is built (Windows, RedHat 5 and RedHat 6). The difference is in the size of the diagram and the textLength attribute in the <text> elements. In the example the differences are small, but in a larger diagram with 5 or 6 actors, the differences are larger.
This happens whether or not I specify a font (I don't in the test example below, but in my real diagrams I use the same Liberation-Sans font in all places and still get different sized diagrams).
This causes a problem because we develop documentation with diagrams locally on Windows, but final production version is built on a Red Hat build sever (both 5 & 6 as we're gradually migrating from one to the other).
Do you have any idea what might be causing the differences and either what I can modify in the build environment to make them the same? These two environments are running the same version of Java (1.7.0_71). I am running plantuml version 8016.
Using a test file:
@startuml
Bob->Alice : hello
@enduml
here are some selections from the output svg using the test input file above, showing the differences:
Windows:
RedHat5:
Windows:
<line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="29" x2="29" y1="39.6094" y2="89.9609" />
RedHat5:
<line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="30" x2="30" y1="38.2969" y2="87.4297" />
Windows:
<text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="25" x="15" y="24.5332">Bob</text>
RedHat5:
<text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="27" x="15" y="22.9951">Bob</text>