-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Mono fonts have same family name as double-width fonts on Windows #757
Comments
(This is an obvious (*) error in (*) When you look on the code that adds it, you go ... WAT??!: if self.args.windows:
# do stuff
else:
familyname += " " + projectNameSingular
if self.args.single:
familyname += " Mono" So maybe diff --git a/font-patcher b/font-patcher
index f8ea7880..3d3770de 100755
--- a/font-patcher
+++ b/font-patcher
@@ -335,8 +335,8 @@ class font_patcher:
familyname = familyname[:maxFamilyLength]
else:
familyname += " " + projectNameSingular
- if self.args.single:
- familyname += " Mono"
+ if self.args.single:
+ familyname += " Mono"
# Don't truncate the subfamily to keep fontname unique. MacOS treats fonts with
# the same name as the same font, even if subFamily is different. But as there are a lot other issues, I believe tackling this one issue is not making much difference anyhow. |
Sounds good, thank you 👍 |
Examining the fonts of current
After some cleanup and sorting we get the following table.
So this issue has been fixed in a6e6ee2 with |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
🗹 Requirements
🎯 Subject of the issue
This is the same issue as Mono fonts have same family name as double-width fonts, which was fixed on all other platforms than Windows.
On Windows, if you have both variants installed, it randomly chooses one of them, which probably makes both variants unusable.
🔧 Your Setup
Windows 11
The font does not matter but I have mostly been testing with FiraCode NF
★ Screenshots (Optional)
The text was updated successfully, but these errors were encountered: