I\'m converting SVG\'s to PNG using ImageMagick and all works like a charm until I tried adding custom fonts using @font-face and then in the SVG file. In Batik this worked
I had this answer after asking for rendering html to an image but it works also for SVG: https://stackoverflow.com/a/56194265/118125
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless --screenshot --window-size=256,256 --default-background-color=0 image.svg
It generates a screenshot.png
file according to what Google Chrome would render.