Well I got some progress, but I'm stuck and don't know how to continue. I found out it's really easy to convert svgs into pngs with SVG Rasterizer from the Batik library (
https://xmlgraphics.apache.org/batik/tools/rasterizer.html). Before I did that, I had to use Find and Replace on Windows (
https://findandreplace.codeplex.com/) to replace in all *.svg files:
width="109" height="109" viewBox="0 0 109 109">to
width="180" height="230" viewBox="0 0 104 104">and:
style="font-size:8;fill:#808080">to
style="font-family:Arial;font-size:8px;fill:#000000">(speaking of, shouldn't there be a "
px" suffix there by default in the svg files?)
After inspecting a few generated pngs, I realized I would have to move them 4 pixels down to match to the images generated from the font exactly (which is easy with ImageMagick:
mogrify *.png -page +0+4 -background none -flatten *.png), but after inspecting more of them, I realized their placement is random and I would have to move all kanji to a different x/y position, so I can't continue.
The problem seems to be the
viewBox coordinates, which I don't know what to change them to to make the svgs match the generated images from the font. 104 104 seems to make the size match exactly, but some are moved more to the left, some more to the right, some up... Basically none match with their positioning to the font generated images, but their size is ok...