SVG with embedded font
Are you using the latest version? Is the version currently in use as reported by npm ls sharp the same as the latest version as reported by npm view sharp dist-tags.latest?
Yes, [email protected]
What are the steps to reproduce?
What is the expected behaviour?
Convert the svg to png
Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?
Yes, run the sample svg image through sharp, but receive a blank png.
Are you able to provide a sample image that helps explain the problem?
Yes, please see the svg and expected png above. Unfortunately, sharp returns a blank png.
What is the output of running npx envinfo --binaries --system?
System:
OS: macOS 10.15.7
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 88.28 MB / 64.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.17.0 - ~/.asdf/installs/nodejs/14.17.0/bin/node
Yarn: 1.22.10 - ~/.asdf/shims/yarn
npm: 7.19.0 - ~/.asdf/installs/nodejs/14.17.0/.npm/bin/npm
Watchman: 2021.06.07.00 - /usr/local/bin/watchman
Hi, this SVG has embedded fonts, which are unsupported by librsvg.
https://github.com/lovell/sharp/issues/1722#issuecomment-495680143 https://gitlab.gnome.org/GNOME/librsvg/-/issues/153