resvg icon indicating copy to clipboard operation
resvg copied to clipboard

μsvg removes pdfLaTeX-bitmap-fonts in Chrome-View

Open JoKalliauer opened this issue 1 year ago • 4 comments

Input

Input

Output

Output

Problem:

Google-Chrome does not display the bitmap-fonts.

I asume it is a Chrome problem? A workaround might be out of scope, due to lack of time.

Copyleft

source: Preprint of https://doi.org/10.1016/j.cma.2022.115820 without cm-super

license:

  • text/content: https://creativecommons.org/licenses/by/4.0/
  • font: https://tug.org/fonts/licenses/

JoKalliauer avatar Mar 31 '23 15:03 JoKalliauer

PS: Running svgcleaner by RazrFalcon fixes the issue and returns:

Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: K.
Warning: Could not resolve IRI reference: L.
Your image is 37.96% smaller now.

Workaround by svgcleaner

Workaround

JoKalliauer avatar Mar 31 '23 15:03 JoKalliauer

There are no bitmap fonts in this SVG. Just a bunch of images. Not sure what is the issue. Have to investigate.

Weirdly enough, when you open this SVG as a link from github - it's broken. But opening a local file works just fine.

But usvg indeed removed filters for some reason. Or maybe simply haven't written them properly. Will see.

RazrFalcon avatar Mar 31 '23 16:03 RazrFalcon

@RazrFalcon:

Weirdly enough, when you open this SVG as a link from github - it's broken. But opening a local file works just fine.

FWIW, the reason is logged into the Chrome DevTools' Console:

screenshot of the error "Refused to load the image (...)" in the Console of Chrome DevTools

generalmimon avatar Mar 31 '23 16:03 generalmimon

@generalmimon weird limitation, but ok. Thanks for the details.

RazrFalcon avatar Mar 31 '23 16:03 RazrFalcon