AnssiR66 / AlanStdLib

The Standard Library for ALAN Interactive Fiction Language
Other
5 stars 2 forks source link

SVG Diagrams via Dia: Problems & Solution #127

Closed tajmone closed 2 years ago

tajmone commented 3 years ago

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:

As for ALAN-specific issues concerning the adoption of this alternative format in all ALAN related documents and projects, see the discussion at: