eigilnikolajsen / commit-mono

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

May I ask how to fill in the name of the font in the software? #68

Closed vagreargnatry closed 10 months ago

vagreargnatry commented 10 months ago

Sorry, I forgot when I used to fill in the font name with 'CommitMono'. This can be used in both VS Code and Alacritty. In v1.141, this method didn't work in my computer (Windows 11). Now, I can use CommitMono 400 Regular for VS Code. But for Alacritty, I don't know how to fill the name.

image

eigilnikolajsen commented 10 months ago

That's a bit weird. It should work with just "CommitMono". It's difficult for me to test since Windows and OSX treat font naming differently. I'll do my best to fix this. In the meantime you can try adding hyphens: "CommitMono-Regular", "CommitMono-400", "CommitMono-400-Regular" but it's merely a shot in the dark.

eigilnikolajsen commented 10 months ago

This will be fixed when #70 is. Will keep you updated.

vagreargnatry commented 10 months ago

Hello! Thank you for your efforts. The issue still persists on my computer with version 1.142. In VS Code, using CommitMono 400 Regular works, but using CommitMono doesn't take effect. In version 1.141, the four font styles in the Windows 11 settings interface are together. However, in version 1.142, the italic and non-italic styles are separated.

image

image

image

image

vagreargnatry commented 10 months ago

Hello. If I only use https://github.com/eigilnikolajsen/commit-mono/blob/main/src/fonts/fontlab/CommitMonoV142-VF.ttf, there are 42 fonts on my computer. At this point, entering "CommitMonoV142" in VS Code allows for normal usage. Please see the following image.

image

image

image

If I install it first and then install the fonts downloaded from the official website, there will be two categories, with a total of 44 fonts in one category and 2 fonts in the other.

image

image

eigilnikolajsen commented 10 months ago

I think I've resolved the issue with the latest website update. You may try to download the latest version from the website, and tell me if it works with just "CommitMono". Thank you!

vagreargnatry commented 10 months ago

The latest version from the website works with just "CommitMono" In VS Code and Alacritty. Thank you so much!

image

vagreargnatry commented 10 months ago

And on my computer's control panel, v1.142 shows CommitMono Bold and CommitMono Italic.

image

It shows four kinds of fonts in Windows 11 settings.

image

image

vagreargnatry commented 10 months ago

Hello! After some computer restarts, I see "CommitMono Bold Italic" and "CommitMono Italic" in my control panel. In Microsoft Word, only "CommitMono" is available as a font option, and when selected, the font appears in italics. This behavior is also present in v1.139.

image

image

I believe Microsoft Word is not well-suited for displaying these monospaced fonts. On my computer's Microsoft Word, certain fonts like "Rec Mono Linear" only appear as a single option (unlike CommitMono, it doesn't default to italics). For fonts like "Cascadia Mono," there are many options displayed, but you cannot select italics directly here; instead, it must be done by marking that portion of the text as italic in Microsoft Word. Meanwhile, fonts like "Iosevka" show numerous choices, allowing direct selection of italics, even if Microsoft Word hasn't marked that segment of text as italic.

image

image

image

eigilnikolajsen commented 10 months ago

Font naming for Office Programs is really a whole different topic, and often requires a different font file all together to work properly. It is not a priority for Commit Mono to work in Word, but I will do my best to resolve the matter in the future.

However, I am closing this issue since it is resolved with release v1.142. If you think the Office Word is important, I encourage you to open a different issue. Thank you.