adam7/delugia-code

Not showing as fixed-width font

clairernovotny opened this issue · 9 comments

Not sure what the patching is doing, but Cascadia Code shows as a fixed-width font, but Delugia does not. See how Visual Studio highlights the fixed-width ones:

image

adam7 commented

Unfortunately I have no idea why this is the case I patch the font using Font Patcher and the default options. Any suggestions on what might be causing the issue would be super helpful.

have you tried --mono ?

from https://github.com/ryanoasis/nerd-fonts#font-patcher

-s, --mono, --use-single-width-glyphs
Whether to generate the glyphs as single-width not double-width (default is double-width)

adam7 commented

Thanks @hanubeki I've added that switch to the workflow command.
@onovotny Can you check if the font artifacts from this build work as expected

https://github.com/adam7/delugia-code/runs/255214512

That appeared to work, but it did change the font name

image

That would break anyone who updates it and expects the current name to work. Not sure if there's a way to specify the font name directly so it stays the same?

adam7 commented

Font Patcher doesn't expose a name parameter it uses an internal set of rules to set the name ... I guess I could rename after patching 🤔

adam7 commented

Re-opening this because my (terrible) fix just made things worse. Simply building with the --mono switch breaks so many things that it's not a good choice see #5

adam7 commented

Fixed, closing. See:

#7 (comment)