Diagrams: Cairo SVG Enforcing Document Sizes? #13
Labels
🔨 Dia
Tool: Dia Diagram Editor
🔬 research
Issue requires further researching
⭐ diagrams
Topic: diagram images
⭐ SVG
Topic: SVG images
Milestone
I've noticed that in the Diagrams README (Markdown) the SVG images generated via the Cairo SVG format tend to have specific sizes, whereas before they where shown as large as the page would allow them to.
This seems to indicate that Cairo SVG adds size info to the generated SVG images.
We need to check if this can be a problem in some output formats, and whether in the HTML edition we can simply enforce custom sizes by specifying a width percentage value relative to the contents width.
If not, we might have to enforce some document size in the source Dia projects, and devise a way to preserve some rational proportions between the various diagrams.
Here's the difference, where the first image is in the Cairo SVG format:
and the second one in the default Dia SVG format used before:
As you can see, the former doesn't stretch to occupy the full available width, while the latter does.
Currently, the AsciiDoc book enforces custom width values on the images, so it's hard to tell whether the SVG diagrams are stretching beyond their predefined sizes; so we'll need to carry out some tests to evaluate the situation and whether we can safely control the diagrams' widths using relative values (page percentage) or not.
The text was updated successfully, but these errors were encountered: