-
Notifications
You must be signed in to change notification settings - Fork 21
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
Commit Mono not listed as “Fixed Width” in macOS "Font Book.app" #15
Comments
I will have a look to see if I can fix this, seems pretty crucial. |
Same on Windows 10. |
I think I've found the source of the issue. When exporting the font using opentype.js the value 'isFixedPitch' fromt the 'post' table seems to get lost. This value seems to be the indicator of font being monospaced. The default value is 0 and that overrides the 1 that I otherwise put. I've filed an issue in the opentype.js repository, hopefully a new version can fix this problem so the font can be exported with the correct category. |
I'm facing the same issue on my MacBook. My editor requires me to load a monospaced font but as Commit Mono is not listed as one, I cannot currently use it. |
Yes, I am sorry about @gaksaray, hoping to fix it as soon as possible. Meanwhile, if you're willing to use the un-customized version, I've created a version for you that should show up in the fixed-width category correctly: CommitMono-1.134-monospace.zip |
Thanks @eigilnikolajsen this works! However, I recall your suggestion from the website to use a weight of 500 in light mode environment (which I prefer). If that's the case, I will still be waiting for customized fonts with a fixed width. |
Did some debugging and experimenting and got it to export the correct monospaced font. The released versions of opentype.js doesn't pass in the @eigilnikolajsen Don't know how you feel about using non official release version of a opentype.js, so didn't make a PR, but can make one if you're okay with that. |
Hey @StreakInTheSky ! Thank you so much for your testing. I'd love if you make a PR, I'm totally fine using a non-official version as long as it works. |
Thanks to the help of @StreakInTheSky this should now be resolved in the latest release |
I just installed the latest release and it still doesn't appear under Fixed Width in Font Book. |
Weird. It's difficult to find info on how Font Book recognises fixed-width fonts. My best guess is that it's the panose numbers. I think those are still an issue on OpenType.js. |
FWIW, the newest release can be set as the terminal font on e.g. Windows Terminal without it complaining about not being a fixed width font. |
I have found before that some monospaced fonts actually have a few stragglers that are just slightly different width than the rest which prevents it from showing up in that category of macOS's Font Book.app. I ran the font through the The file you posted (CommitMono-1.134-monospace.zip) has in
On the other hand, v1.142 has in
which seems high to me. Also, in
is how the one you posted in this thread looks like. And the latest release shows
Please note the |
So opentype.js has a number of issues with Monospaced font support, the post table was just the most obvious. Did a bunch of research a while back since I had no idea how font files worked before this, but it kind of went on the back burner. Should probably create an issue over there. |
I installed the customed latest release and it still doesn't appear under Fixed Width in Font Book. |
You can try the version with the modifications I described in #75. The changes make it possible to use it with the Windows Console, so maybe they'll work for you too. The files are attached below: They're based on Commit Mono version 1.142 of 2023-12-09. The weights are 400 (Regular) and 700 (Bold). Hope it's OK with the author to share it like that, if not please feel free to delete. I can also post the |
I was really excited to try this font - especially with all the great customisations to my liking - but bumped into this issue. Using MacOS + Kitty and Kitty only recognises fixed widths fonts and it's not listed as that in neither Kitty nor Font Book. |
This commit will update `kitty.conf` to switch the font from Dank Mono to Recursive (`Rec Mono Duotone`). This commit is part of a switch from Dank Mono to Recursive. Although Dank Mono does render in VSCode, it is not correctly monospaced and therefore stopped working in some applications that have more strict font requirements, like the terminal emulator kitty (kitty >=0.36). https://www.recursive.design/ https://github.com/arrowtype/recursive https://sw.kovidgoyal.net/kitty/changelog/ https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font Explanation from Dank Mono creator Phil Pluckthun via email: > Some terminal applications require a specific monospace flag to be set > in the font file that was only gaining traction after the font was > released. Some also just don't support fonts with ligatures. In Dank > Mono's case the specific flag that some applications require to select > the font as a monospaced one simply isn't set, and a different, older > one is set instead. Related issues: eigilnikolajsen/commit-mono#15 IdreesInc/Monocraft#26 IdreesInc/Monocraft#77 tonsky/FiraCode#1325 vercel/geist-font#33
This commit will update the README to document the switch from Dank Mono to the Recursive font (`Rec Mono Duotone`). Although Dank Mono does render in VSCode, it is not correctly monospaced and therefore stopped working in some applications that have more strict font requirements, like the terminal emulator kitty (kitty >=0.36). https://www.recursive.design/ https://github.com/arrowtype/recursive https://sw.kovidgoyal.net/kitty/changelog/ https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font Explanation from Dank Mono creator Phil Pluckthun via email: > Some terminal applications require a specific monospace flag to be set > in the font file that was only gaining traction after the font was > released. Some also just don't support fonts with ligatures. In Dank > Mono's case the specific flag that some applications require to select > the font as a monospaced one simply isn't set, and a different, older > one is set instead. Related issues: eigilnikolajsen/commit-mono#15 IdreesInc/Monocraft#26 IdreesInc/Monocraft#77 tonsky/FiraCode#1325 vercel/geist-font#33
In macOS’s Font Book app, if you look in the Fixed Width collection, Commit Mono is not listed. Is the fact that Commit Mono is monospace a missing piece of metadata? (I don't know anything about how font files work or what information they store about themselves, but other monospace fonts I've installed have correctly ended up in the Fixed Width collection.)
The text was updated successfully, but these errors were encountered: