inconsistent units pt and px in generated SVG image

+1 vote
asked Apr 14, 2015 in Bug by anonymous
When I generate an SVG image using plantuml.8022.jar, then the following root element is created:

<svg xmlns="" xmlns:xlink="" height="53pt" style="width:43px;height:53px;" version="1.1" viewBox="0 0 43 53" width="43pt">

While the style attribute sets width to 43px, the width attribute has a value of 43pt; similar for the height attribute.

This inconsistent use of the units px and pt can cause trouble when a browser is used to repesent the generated SVG image. The trouble is avoided, when pt is either replaced with px or when pt is omitted.

3 Answers

0 votes
answered Apr 15, 2015 by Ulrikop (140 points)
You are right! That is the problem, why my pictures are always to large.
0 votes
answered Apr 15, 2015 by plantuml (257,940 points)

Many thanks for the feedback and the detailled report.

This has been solved in the last beta and will be in next official release

The "px" have been replaced by "pt"

Thanks again

0 votes
answered Apr 20, 2015 by plantuml (257,940 points)
This has been fixed in V8023.

Thanks again!