Created
October 2, 2011 10:14
-
-
Save sdussaut/1257311 to your computer and use it in GitHub Desktop.
Importing a font in SVG
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
<!-- defining the font --> | |
<defs> | |
<font-face font-family="your-font-name"> | |
<font-face-src> | |
<font-face-uri xlink:href="path-to-your-font"/> | |
</font-face-src> | |
</font-face> | |
</defs> | |
<!-- using it --> | |
<text x="0" y="0" font-family="your-font-name">My beautiful text in my custom font.</text> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment