eigilnikolajsen / commit-mono

Commit Mono is an anonymous and neutral programming typeface.
https://commitmono.com/
1.28k stars 21 forks source link

Custom settings and (non-)versioned not recognized properly in Windows #59

Open Devlevel9000 opened 11 months ago

Devlevel9000 commented 11 months ago

I have a -spaced version installed with different spacing setting (go figure) and I can only reference the font in VSCode (in NP++ all variants show as italic) by adding the weight at the end of the name, also that makes the editor not map to the italic variants

image

Also, somehow I have two versions of the font, one without a version and one with the version, in VSCode only the one with the version works

image image

But in IntelliJ all 3 show up but the versioned on only has extra light weight, the non-versioned one looks fine

image image

I remember 137 or 138 showing up properly for the non-versioned one, looks like a recent issue. This is only on Windows, not sure how it behaves on other OSes

eigilnikolajsen commented 11 months ago

Thank you for the detailed description. I will have a look at this issue as soon as possible.

Devlevel9000 commented 11 months ago

Wow, that was fast, here's the Notepad++ issue mentioned above, also. So apparently after I installed a new custom -mdspace one, the -spaced one works, but I have only one weight, only the versioned one has all the weights separate, also the non-versioned one gets registered as italic as well as the new -mdspace one.

image
eigilnikolajsen commented 11 months ago

Interesting. Just to be sure (you've probably already tried): have you tried restarting the programs (N++, VS Code, IntelliJ) after installing the font. Many programs need restarting in order for font changes to be recognized.

Devlevel9000 commented 11 months ago

Yeah, I am aware of that, all editors have been restarted. Usually the fonts don't register if the editor is open when installing them, so it wouldn't even show up in any of them.

One thing I did notice is that the variable font file size is a bit off, it's the same size as a single OTF, I think 42 TTFs should have a larger size than 1 OTF.

image

Personally I think the packager is misbehaving, I also get asked if I want to replace only the extra light version when installing it. My memory might be failing me, but I should've get asked to replace all weights with the checkbox to do that for each one.

eigilnikolajsen commented 11 months ago

The file size is quite right. TTFs are smaller than OTFs and the variable font does not contain 42 fonts, only 4 (extra light, extra light italic, bold, bold italic).

Can you upload the files you believe are misbehaving here, so I can check them for myself?

Devlevel9000 commented 11 months ago

I beg to differ, the variable font archive contains all the weights:

image image

Here's the variable font. CommitMono VariableFont.zip

Devlevel9000 commented 11 months ago

CommitMono.zip

I'll add the 139 without the version at the end, basically the basic version which doesn't work in VSCode, for reference.

eigilnikolajsen commented 11 months ago

The variable font interpolates meaning it doesn't have to contain all the weights - only the extremes (in font terminology called Masters)

I'll have a look at the files soon.

eigilnikolajsen commented 11 months ago

Your file names look odd. Did you just download the files from the website?

Devlevel9000 commented 11 months ago

Yup, all are downloaded directly from the website.

CM_sample.zip

Just downloaded from the Customize page, the custom for design package.

Didn't make any changes, just downloaded the font.

eigilnikolajsen commented 10 months ago

Can I have you check if this is working in the latest release (or get it from https://commitmono.com)?

stlee42 commented 9 months ago

I can confirm I am seeing a similar issue with the latest v1.142. I used the customizer and downloaded the 4-style pack. In control panel, only the bold and italics show up. (In C:\Users\xxx\AppData\Local\Microsoft\Windows\Fonts, all four files are there)

In WordPad, when I type, it uses the italic face. When I bold it, the bold style is correctly used. When I used the italic style, the faux-italic version is manufactured using the italic face (the italic face shows up even more slanted). When I use bold italic, faux-italic version is manufactured using the bold face (the bold version is slanted in software). I have the alternate 'aegfy' turned on, so it's easy to tell.

I am not using a custom name. The same files work fine on my macintosh .

I just tried "Download (default settings)" in section 8. Same thing except instead of finding bold and italic in control panel, i see bold italic and italic.

Lastly, I tried downloading the file with all 42 cuts. I installed just the four files i'm used to. And now this is what shows up on the control panel.

Screenshot 2023-12-09 223413

And correspondingly it's impossible to use the regular style from WordPad or Word (or any other style that doesn't show in control panel).

(In the screenshot from using the file with 42 cuts, Commit Mono shows up under two different entries as you can see. In the previous cases of installing from the zip file with only 4 cuts, it showed up under just one entry "Commit Mono".)

Therefore, I believe this font is currently not functional under Windows.