Embed fonts in PDF

Is there a way to embed fonts in a PDF generated by ROOT? I don’t mean to just select a font, but to actually embed it in the PDF file so it looks the same regardless of client.

Thanks.

After writing your PDF, try using ghostscript with a command like this:

gs -o file2.pdf -sDEVICE=pdfwrite -dEmbedAllFonts=true -sFONTPATH=\"/usr/share/ghostscript/9.05/Resource/Font\" file.pdf

Check with:

pdffonts file.pdf | grep 'Type'

Alternatively, you could open the pdf file with inkscape and export it as pdf and check the option convert texts to paths.

Yes, I’ve been following the Inkscape approach for a while now and the gs command is useful too. But I would have preferred for ROOT to handle that for me. It kinda goes against the LaTeX’s (even Adobe’s) standard by not having the fonts embedded by default. So I was thinking maybe I’m missing an option or something…

There is no option to embed the fonts is a ROOT PDF file. This choice was made to keep the files small.