Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isn't quite monospaced #643

Open
drventure opened this issue Nov 18, 2022 · 1 comment
Open

Isn't quite monospaced #643

drventure opened this issue Nov 18, 2022 · 1 comment

Comments

@drventure
Copy link

I love Hack, but it has one issue that has bothered me for a while.

I use a few programs that will only populate their font selection boxes with "monospaced" fonts. Now, when I bring up Visual Studio's config window, Hack is bolded, just like all the other "monospaced" fonts.

But some other apps appear to use some different method of identifying monospaced fonts, and Hack doesn't pass the test, meaning Hack won't be presented as a font that can be selected.

I finally did some poking around, and using FontForge, was able to isolate why.

For some apps, just tagging the font as "monospaced" is not enough. Literally EVERY SINGLE GLYPH must have the same advance.

In Hack, there are several that don't, although I don't see any particular reason why they wouldn't:

UNI000
/GRAVECOMB
/ACUTECOMB
/TILDECOMB
/HOOKABOVECOMB
/DOTBELOWCOMB
/.NOTDEF
/_1531

When I used FontForge to force all those glyphs to be the same advance as everything else, then centered the glyphs in the width, and generated a new font, the new version was properly recognized in ALL programs, even those where it wasn't before.

I've generated a "slightly modified" version of Hack I call Hackd here

https://darinhiggins.com/2022/11/15/hacking-hack/

It contains the above fix, plus a few other minor tweaks, plus the Ligatures from FiraCode, because I just really like Ligatures.

But mainly, I just wanted to let you know of the issue and what I found debugging it.

@Elahejanam
Copy link

👍🏼👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants