Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

inconsistent units pt and px in generated SVG image

+1 vote
When I generate an SVG image using plantuml.8022.jar, then the following root element is created:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/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.
asked Apr 14, 2015 in bug by anonymous

3 Answers

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

Many thanks for the feedback and the detailled report.

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

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

The "px" have been replaced by "pt"

Thanks again

answered Apr 15, 2015 by plantuml (125,190 points)
0 votes
This has been fixed in V8023.

Thanks again!
answered Apr 20, 2015 by plantuml (125,190 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...