How to embed fonts in Inkscape?

Asked by Sandro

Hi All,

I routinely transport my Inkscape files from one computer to another [house / office] but the office computer does not have all the fonts I have at home, so when I load my Inkscape files on it, it replaces the fonts and that messes up my designs.

Is there a way to embed fonts in an Inkscape file?

I do not want to convert the fonts to paths nor objects because I could want to change the text.


Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
su_v (suv-lp) said :

Not yet ;-)

There has been initial support for SVG fonts added for 0.47:
but at the moment you can use it only to design fonts, not embed those used in text objects AFAIU.

related links:

Fonts - SVG 1.1 - 20030114:

Bug #170963 in Inkscape: “Support for SVG fonts (rendering, embedding,...)”:
Questions : Inkscape: How to create font with SVG Fonts dialog

Subject: designing fonts within Inkscape
Subject: SVG Font Editor

hth, ~suv

Revision history for this message
Alex (cardigan99) said :

Is there any progress on this issue?

Revision history for this message
Sunil K Chopra (sunil-sunilkchopra) said :

I needed to embed a font into an SVG and saw this. Then I googled around and figured out how to do it manually. Here's how:

First, the syntax:

  @font-face {
    font-family: "Sample font";
    src: url("data:font/woff;charset=utf-8;base64,...");

(this tag can go right at the top of the SVG, after the <SVG> opening tag)

To perform the base64 encoding in Ubuntu:

:~$ base64 GOTHIC.TTF | tr -d '\n' > gothic.b64

piping into tr is necessary to trim the newline characters

Revision history for this message
Arkadiusz Szergowski (settifusion) said :

base64 -w 0 GOTHIC.TTF > gothic.b64

The same - option -w 0 turns off wrapping

Can you help with this problem?

Provide an answer of your own, or ask Sandro for more information if necessary.

To post a message you must log in.