Created
November 30, 2014 23:16
-
-
Save devdays/9237a601d59a7990a98e to your computer and use it in GitHub Desktop.
SVG Text on Path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.1" | |
xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<path id="MyPath" | |
d="M 100 200 | |
C 200 100 300 0 400 100 | |
C 500 200 600 300 700 200 | |
C 800 100 900 100 900 100" /> | |
</defs> | |
<desc>Example toap01 - simple text on a path</desc> | |
<use xlink:href="#MyPath" fill="none" stroke="none" /> | |
<text font-family="Verdana" font-size="42.5" fill="blue" > | |
<textPath xlink:href="#MyPath"> | |
We go up, then we go down, then up again | |
</textPath> | |
</text> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment