Skip to content

SVG Diagrams via Dia: Problems & Solution #74

@tajmone

Description

@tajmone

While working on another AsciiDoc project, I've realized that SVG diagrams generated via Dia Diagram Editor are not properly aligning text which wraps across multiple lines (which has a noticeable effect when using monospaced fonts and centered aligned text split across multiple lines).

Furthermore, while working on a solution, I realized that exporting to the cairo-svg format (an alternative SVG export format to Dia's default, not mentioned in the CLI help) generates images which are exempt from the alignment problem.

As an added bonus, I also discovered that the Cairo SVG format converts text to vector shapes, thus freeing the diagrams from fonts dependencies.

For the full details of the problem and its possible solutions, and to join the discussion, see the upstream Issue:

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    🕑 pending decisionIssue requires decisions by maintainers🔨 DiaTool: Dia Diagram Editor💀 bugSomething isn't working⭐ SVGTopic: SVG images⭐ diagramsTopic: diagram images

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions