I'm using the Hack Nerd Font. I've checked with kitty's --debug-font-fallback that it contains glphys for every unicode codepoint that I'm using.
Somehow the vertical alignment of some glphys is off.
Here is the .SVG after embedding the Hack Nerd Font

Notice how the alignment of some of the glphys is off...


Yet in the terminal with the same Hack Nerd Font everything is aligned properly.

I also tried this with FiraCode, but the results were about the same.
It's almost like the SVG can't find the glphy from these codepoints and is grabbing them from a different font, or maybe just rendering some codepoints at the wrong size...
SVG with Hack font embedded

SVG before font embedding

ASCIICast used to produce SVG
220908-5Oey.cast.zip
Font file embedded in SVG
Hack Regular Nerd Font Complete Windows Compatible.zip
I'm using the
HackNerd Font. I've checked with kitty's--debug-font-fallbackthat it contains glphys for every unicode codepoint that I'm using.Somehow the vertical alignment of some glphys is off.
Here is the .SVG after embedding the

Hack Nerd FontNotice how the alignment of some of the glphys is off...

Yet in the terminal with the same

Hack Nerd Fonteverything is aligned properly.I also tried this with FiraCode, but the results were about the same.
It's almost like the SVG can't find the glphy from these codepoints and is grabbing them from a different font, or maybe just rendering some codepoints at the wrong size...
SVG with Hack font embedded
SVG before font embedding
ASCIICast used to produce SVG
220908-5Oey.cast.zip
Font file embedded in SVG
Hack Regular Nerd Font Complete Windows Compatible.zip