mgieseki / dvisvgm

A fast DVI, EPS, and PDF to SVG converter
https://dvisvgm.de
GNU General Public License v3.0
306 stars 33 forks source link

Missing fonts when converting from PDF to SVG #168

Closed pstricks-fans closed 2 years ago

pstricks-fans commented 2 years ago

Consider the following input file named input.tex,

\documentclass[pstricks,border=1cm]{standalone}
\usepackage{amsmath}
\begin{document}
\foreach \a in {0,10,..., 350}{%
\begin{pspicture}[showgrid](-5,-5)(5,5)
        \pscircle{5}
        \rput(0,0){$\int_a^bf(x)\,\mathrm{d}x$}
        \rput(5;\a){\rput{\a}(0,0){\psline[linecolor=red]{->}(-12pt,0)}}
\end{pspicture}}
\end{document}

First I compile it with latex-dvips-ps2pdf to get a PDF file. The PDF is well produced (the fonts exist).

However, if I convert the PDF with the following command,

dvisvgm --no-fonts --bbox=papersize --precision=1 --pdf --page=- --output=output-%3p.svg input.pdf

I get a bunch of SVG files but the fonts are missing. What am I missing here?