You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
Hi @erwin, svgembed is not under active maintenance, and since I don't personally use it again, I'm unable to help investigate this. Although, svgembed doesn't do much besides literally just embedding the font inside the SVG file. So it's either the SVG viewer doesn't know what to do with the those glyphs or the terminal is doing more than the font allows so you don't notice the discrepancy in the terminal. Either way, unfortunately, there's no fix for this from inside svgembed as the issue is not from this tool.
It could be that the terminal supports ligatures, and how svgembed's informs the SVG viewer about the font doesn't tell it to support ligatures. I'm not sure if this is even a thing in the context of most viewers, like browsers. But if you can find any information or perhaps even get a working patch, I'd accept a PR.
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
The text was updated successfully, but these errors were encountered: