Remove subset prefix in generated SVG font-family

Post questions on how to use or achieve an effect in Inkscape.
Louis Burton

Remove subset prefix in generated SVG font-family

Postby Louis Burton » Sat Dec 04, 2010 3:34 am

Hi,

I've been using inkscape to convert my PDFs to SVGs via the command line as part of an automated process.

I have a PDF which contains embedded subset fonts.

The resulting SVG will generate font family references which contain the distinct font family name with the prefix, which won't be valid outside the scope of the pdf.
i.e. font-family:'EZHKPM+Gill Sans MT'

Is there not an option in Inkscape to remove the prefix so that the current font can be found and used.
i.e. font-family:'Gill Sans MT'

I have tried manually editting the produced SVG to remove these prefixes, I then get no issues when running the SVG through the rest of our process The rest of the process generates a PDF and PS through FOP using the SVG, and this displays fine as the now valid TTF font family is referenced.

I'm not sure whenever the first font-family example is useful, is this a bug? I've been using v0.48.0-1 of Inkscape and simple commands (i.e. inkscape.exe -f "test.pdf" -l output.svg).

Thanks, any help is appreciated.

Louis Burton

Return to “Help with using Inkscape”