Inkscape.org
Beyond the Basics Just checking if anyone has found a way to embed fonts
  1. #1
    brucewestfall brucewestfall @brucewestfall
    • Yes, I've googled it and searched on this forum
    • No, I don't want to convert to paths
    • Not interested in other programs that do embed fonts

    Now that we have that out of the way, shall we proceed?

    I've used Inkscape since shortly after it forked or changed from Sodipodi.  Inkscape is my MAIN software for work, which I do remotely. All my files are backed up to Dropbox so I can access them anywhere. Every so often I am asked to make a slight change on a drawing which usually has graphics and a unique font.  If I happen to be out and about without my laptop (GASP!) it would be nice to be able to edit the file on another machine. (currently 1000+ fonts installed. Yes, I like it that way)

    Since Inkscape and the SVG standard accept attaching an image I guess I don't understand why that can happen with a 45kb font.

    Or another workaround: I wish I could write scripts, but my 59 yr old ADHD addled brain just won't cooperate. 🐿!!  Is there a script that could at least read what fonts are there and save them in the same folder as the current file?

    Maybe there is an option with the newest Inkscape version and I just haven't found it.  Any help would be appreciated.

    This sentence about embedding fonts in Inkscape is so that Google can find it easier when searching for Inkscape embed a font

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I'd also back up all my fonts to DropBox, then they are available wherever/whenever. Yeah, 1000+ fonts... why not? They are small files, as you point out.

    An extension to save the fonts to the same directory? Doubtful, but I'd opt for saving a PDF with the fonts embedded for quick reference (via pdf document properties). The pdf may be useful in other ways as well.

    An extension that lists the typefaces used into the metadata seems do-able.

  3. #3
    inklinea inklinea @inklinea⛰️

    It's possible to embed fonts quite easily using at bit of python in Inkscape under Linux.

    It's a bit harder under Windows because it needs a library called 'brotli' to do the woff2 encoding from TTF/OTF.

    However this is really just to make fonts appear in browsers if the end user does not have the font installed. 

    Inkscape cannot work with embedded fonts, so it's an export function really.

    I suppose you could equally write another bit of python to decode and save the fonts out of the SVG. 

    I would be a horrible workflow - much simpler just to take notes of which font is used.

    Ref putting the font name in the metadata etc, yes that can be done fairly simply.

    Here is an example of an svg with embedded fonts ( including a colour font that will render in Firefox ).

     

    Dancing Script 2023 12 14 04 58 05
Inkscape Inkscape.org Inkscape Forum Beyond the Basics Just checking if anyone has found a way to embed fonts