jonthysell / Chordious

Fretboard diagram generator for fretted stringed instruments.
http://chordious.com
MIT License
38 stars 9 forks source link

Diagrams with the "Chord Name" Label Style have overlapping title text #138

Closed jonthysell closed 2 years ago

jonthysell commented 2 years ago

Given the following diagram:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="171" height="298">
<!-- Created with Chordious.WPF 2.6.1. -->
<rect style="fill:white;fill-opacity:0;" width="171" height="298" x="0" y="0" />
<rect style="fill:white;fill-opacity:0;stroke:black;stroke-width:2;" width="111" height="150" x="30" y="118" />
<line style="stroke:black;stroke-width:2;" x1="67" y1="118" x2="67" y2="268" />
<line style="stroke:black;stroke-width:2;" x1="104" y1="118" x2="104" y2="268" />
<line style="stroke:black;stroke-width:2;" x1="30" y1="148" x2="141" y2="148" />
<line style="stroke:black;stroke-width:2;" x1="30" y1="178" x2="141" y2="178" />
<line style="stroke:black;stroke-width:2;" x1="30" y1="208" x2="141" y2="208" />
<line style="stroke:black;stroke-width:2;" x1="30" y1="238" x2="141" y2="238" />
<line style="stroke:black;stroke-width:4;" x1="29" y1="117" x2="142" y2="117" />
<circle style="fill:black;fill-opacity:0;stroke:black;stroke-width:2;" r="10.05" cx="30" cy="103" />
<circle style="fill:black;fill-opacity:0;stroke:black;stroke-width:2;" r="10.05" cx="67" cy="103" />
<circle style="fill:black;fill-opacity:1;" r="10.05" cx="104" cy="193" />
<circle style="fill:black;fill-opacity:1;" r="10.05" cx="141" cy="133" />
<text style="fill:black;opacity:1;font-size:38pt;font-family:serif;text-anchor:middle;" x="85.5" y="68">C<tspan style="font-size:28.5pt;">m11</tspan></text>
</svg>

How it should render: image

How it actually renders: image

There seems to be a regression in SVG.NET with aligning text: https://github.com/svg-net/SVG/issues/938

As far as I can tell, the regression started in SVG.NET v3.2.1.

jonthysell commented 2 years ago

Fixed in 2.6.2