some better svg text pieces

This commit is contained in:
Chris Cochrun 2025-04-02 09:36:39 -05:00
parent b65ac72a01
commit ed5e434adb
2 changed files with 14 additions and 8 deletions

View file

@ -311,11 +311,11 @@ impl SongEditor {
<feDropShadow dx="10" dy="10" stdDeviation="5" flood-color='#000' />
</filter>
</defs>
<text x="0" y="300" font-weight="bold" font-family="Quicksand" font-size="80" fill="white" stroke="black" stroke-width="2" style="filter:url(#shadow);">
Hello World
</text>
<text x="0" y="350" font-weight="bold" font-family="Quicksand" font-size="40" fill="white" stroke="black" stroke-width="2" style="filter:url(#shadow);">
Hello World
<text dominant-baseline="middle" text-anchor="middle" font-weight="bold" font-family="Quicksand" font-size="80" fill="white" stroke="black" stroke-width="2" style="filter:url(#shadow);">
<tspan x="50%" y="50" >Hello World this is</tspan>
<tspan x="50%" y="140">longer chunks of text</tspan>
<tspan x="50%" y="230">where we need to test whether the text</tspan>
<tspan x="50%" y="320">will look ok!</tspan>
</text>
</svg>"#.as_bytes());
stack!(