mgieseki / dvisvgm

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

> and ' gets replaced with " in SVG #276

Closed gromnitsky closed 1 month ago

gromnitsky commented 1 month ago

In this pdf, which I converted to an .svg with

$ dvisvgm -s -P -f woff2 1.pdf > 1.svg

some chars (> and ') got replaced with ". This doesn't happen with --no-fonts option.

$ dvisvgm -V1
dvisvgm 3.4.1 (x86_64-pc-linux-gnu)
-----------------------------------
brotli:      1.1.0
clipper:     6.2.1
freetype:    2.13.2
Ghostscript: 10.02.1
kpathsea:    6.3.5
mutool:      1.24.6
potrace:     1.16
ttfautohint: 1.8.4
xxhash:      0.8.2
zlib:        1.3.1.zlib-ng
mgieseki commented 1 month ago

Could you please provide a reduced PDF file with only a single line of text showing the issue? The current file is way to big for debugging purposes.

gromnitsky commented 1 month ago

Certainly, although now "-f woff2" rendering in Chrome became even more bizarre: < got replaced with > and the whole line didn't fit into the svg:

mgieseki commented 1 month ago

Thanks for the shortened file. I've fixed the initial character bug. The clipped text seems to be a different issue. Feel free to open a separate ticket for that one.