Jay Taylor's notesback to listing index
HOWTO: Embedding a font in a Linux Inkscape SVG document | FOB[web search]
You are here
HOWTO: Embedding a font in a Linux Inkscape SVG document
Submitted by Bart on Fri, 2014-03-14 12:11
I wanted to embed a font in an Inkscape SVG document I created in Debian Linux and was about to email to someone today. With a lot of help from the web I figured out one way to do it. Here's how… (Too many web sources to list them all, but I found http://tutorials.jenkov.com/svg/svg-and-css.html to be particularly helpful.)
There are two choices for embeddable font formats for SVG: "SVG Font" and WOFF. I chose WOFF because it was what I came to first. So, first, get yourself a copy of the
Next, get a copy of
Okay, now you are ready to hack up a copy of your Inkscape document. Open it with a text editor, and just below the opening
The first ellipsis "..." is the official name of your font, and the second is the actual font data from your newline-stripped BASE64 WOFF file.
Things that will deal with embedded fonts: Chrome, Firefox.
Things that won't deal with embedded fonts: CairoSVG (crashes), Inkscape (ignores them).
Things I haven't tried: everything else.