On 21 October 2017 at 15:01, Miguel Lopez <reptillia39@...3425...> wrote:

Here's my question, how does this solve the issue with sharing document, and forgetting to share the fonts too? Maybe something like font lookup using database would solve this issue, or somehow embedding the font file into the svg file. Or maybe when you use compressed svg, you can save the font file there.

If you're creating SVG for the web, you'd usually have the fonts hosted separately on your web server (or via a 3rd-party service), so that the same font files can be used with many different web pages / graphics, without having to download them each time.

However, I agree that embedding the fonts in the SVG file should be an option.  With CSS @font-face, you do that by converting the (binary) font file into a string called a data URI, which can then be used instead of a URL reference to a different file.  In this way, you can embed any font in an SVG, not only the SVG font elements.

This is exactly the same mechanism that Inkscape already uses for photographs and other raster images: you have the choice to either have a link to another image file, or to embed it (by converting it to a data URI). 

~ABR