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

MacOS issues "multiple copies of this font are installed" warning (for example for JetBrainsMono Nerd Font) #542

Closed
martinburger opened this issue Nov 20, 2020 · 35 comments
Milestone

Comments

@martinburger
Copy link

🎯 Subject of the issue

I installed the JetBrainsMono Nerd Font on my macOS machine by (1) installing JetBrainsMono.zip manually and (2) running brew install font-jetbrains-mono-nerd-font.

Please note that I removed all the font files installed by step (1) before I continued with step (2).

In both cases, I get various "multiple copies of this font are installed" warnings in Font Book.

🔧 Your Setup

  • JetBrainsMono Nerd Font (see above)
  • iterm2 Build 3.4.1
  • macOS Catalina 10.15.7 (19H2)

★ Optional

Screen Shot 2020-11-20 at 20 34 50

@jaydorsey
Copy link

jaydorsey commented Jan 28, 2021

I'm also seeing this. Comparing the 3 fonts that are duplicated, the only collision that seems to make sense is that the "Postscript Name" is identical for the 3 fonts I've installed.

I'm seeing the same behavior with the 3 Italic fonts in the Mono versions.

Edit: I'm not sure how to fix this yet but I do plan to investigate and see if I can figure out how to manually rename the fonts (or ideally submit a PR for the patcher)

@jaydorsey
Copy link

I was able to:

  • Remove the "duplicate" copies of the font, leaving regular Italic installed
    • ExtraBold Italic
    • Medium Italic
  • Download FontForge and open the 2 "duplicate" copies
  • Modify the Font Name (Element -> Font Info in FontForge)
    • I changed the fonts to MItalic (for Medium) and EBItalic (for Extra Bold) to differentiate the names
    • I ignored this error (on macos) but it might be nice to "shorten" the names so they comply
      image
    • I retained the Unique ID when prompted (guessing this will prevent duplicates if I reinstall again
  • Regenerate the fonts with File -> Generate Fonts
    • Changed the type to True Type
    • Ignored the warning about Em-Size (chose Yes)
    • Ignored the errors warning (chose Generate)
  • Installed my new fonts

So far everything looks OK but I need to do some more testing with the fonts. I think it would be better to fix the patcher, or for windows compatibility maybe choose a shorter name (JB instead of JetBrains?). I'm assuming ExtraBold and Medium got dropped to meet the 31 character naming warning.

@poetaman
Copy link

poetaman commented Feb 13, 2021

@martinburger @jaydorsey This is not just a warning! Terminal emulator applications WezTerm are not able to recognize all the NERD fonts like the regular italic version of jetbrain mono you mention. I suspect it has to do something with this... Here's a workaround I did, it works well now...

@maddiemort
Copy link

I'm having the same problem with BlexMono. Font Book thinks the ExtraLight Italic, Italic, Light Italic, Medium Italic, Text Italic, Thin Italic, and SemiBold Italic faces are duplicates. Alacritty can recognise Italic, but it looks like none of the other faces are usable.

@docwhat
Copy link

docwhat commented May 14, 2021

The Blex Mono font seems to have the same problem.

--- /tmp/original-list	2021-05-14 09:50:17.000000000 -0400
+++ /tmp/after-automatically-removal-by-font-book	2021-05-14 09:49:51.000000000 -0400
@@ -1,18 +1,12 @@
 Blex Mono Bold Italic Nerd Font Complete.ttf
 Blex Mono Bold Nerd Font Complete.ttf
-Blex Mono ExtraLight Italic Nerd Font Complete.ttf
 Blex Mono ExtraLight Nerd Font Complete.ttf
 Blex Mono Italic Nerd Font Complete.ttf
-Blex Mono Light Italic Nerd Font Complete.ttf
 Blex Mono Light Nerd Font Complete.ttf
-Blex Mono Medium Italic Nerd Font Complete.ttf
 Blex Mono Medium Nerd Font Complete.ttf
 Blex Mono Nerd Font Complete.ttf
-Blex Mono SemiBold Italic Nerd Font Complete.ttf
 Blex Mono SemiBold Nerd Font Complete.ttf
-Blex Mono Text Italic Nerd Font Complete.ttf
 Blex Mono Text Nerd Font Complete.ttf
-Blex Mono Thin Italic Nerd Font Complete.ttf
 Blex Mono Thin Nerd Font Complete.ttf

@facuparedes
Copy link

Same issue here with JetBrains

@learn2reid
Copy link

Same issue with Jetbrains, what's the best way to resolve?

@Finii
Copy link
Collaborator

Finii commented Jan 23, 2022

The problem is the Family und SubFamily naming that is too simple to handle whole sets of fonts.

Would be fixed by #717.

@unikitty37
Copy link
Contributor

Same issue with Hasklug:

image

image

image

@brzzdev
Copy link

brzzdev commented Jul 20, 2022

Still seeing the issue with Blex Mono

@martinburger
Copy link
Author

In both cases, I get various "multiple copies of this font are installed" warnings in Font Book.

Version 2.2.2 seems to have this fixed. Thx!

@Finii
Copy link
Collaborator

Finii commented Sep 8, 2022

Version 2.2.2 seems to have this fixed. Thx!

Great to hear that! Thanks for the feedback 💚 Normally ppl just complain and never say when something works ;-)

@Finii Finii closed this as completed Sep 8, 2022
@Finii
Copy link
Collaborator

Finii commented Sep 8, 2022

Aforementioned fix by #717 has been pulled indirectly by #723, but it is not active for any font but Caskaydia.
You can utilize it when self patching with --makegroups. That option will end up finally in the src/unpatched-fonts/*/config.cfg files where appropriate.

Maybe the fix has been this PR less last minute commit: font-patcher: Correct Family for Mono Windows

Actually I'm astonished that the issue is gone 😀

The change with the families is planned for 3.0.0, because it is kind of 'breaking' when names change.
Before that an update all the things version 2.3.0.
2.2.0 was about fixing 'simple' stuff mainly.

@sizur
Copy link

sizur commented Sep 10, 2022

VictorMono has the same issue.

@noefroidevaux
Copy link

Iosevka seems to have the same issue

@Finii
Copy link
Collaborator

Finii commented Oct 24, 2022

Is one of you able/willing to try a VictorMono / Iosevka / ? font set (i.e. parallel installation of all of them that we have in the release zip), and try if they work as expected?
I could generate the zips just for you to try, so maybe we can enable it then for v2.3.0.

Until now its only me who tested it (I assume), and then only on Linux 😬 But theoretically it must fix it ;-)

@Finii
Copy link
Collaborator

Finii commented Oct 24, 2022

Reopening this, removing the font specific reference in the title, to collect more complains.

@Finii Finii reopened this Oct 24, 2022
@Finii Finii changed the title JetBrainsMono Nerd Font on macOS caueses "multiple copies of this font are installed" warning MacOS issues "multiple copies of this font are installed" warning (for example for JetBrainsMono Nerd Font) Oct 24, 2022
@noefroidevaux
Copy link

noefroidevaux commented Oct 24, 2022

Is one of you able/willing to try a VictorMono / Iosevka / ? font set (i.e. parallel installation of all of them that we have in the release zip), and try if they work as expected? I could generate the zips just for you to try, so maybe we can enable it then for v2.3.0.

Until now its only me who tested it (I assume), and then only on Linux 😬 But theoretically it must fix it ;-)

Happy to test, but not sure what I have to do 😊 Do you want me to test the v2.3.0-RC? Or you want to provide us a new zip?

@Finii
Copy link
Collaborator

Finii commented Oct 24, 2022

Or you want to provide us a new zip?

I will generate a new Iosevka.zip for you tomorrow. :-)

@noefroidevaux
Copy link

Or you want to provide us a new zip?

I will generate a new Iosevka.zip for you tomorrow. :-)

@Finii Where can I find the zip file?

@Finii
Copy link
Collaborator

Finii commented Nov 1, 2022

@noefroidevaux 🤯 Sorry forgotten. I build it right away, hold tight...

Edit:

It's running now, this will take an hour or so...

image

@Finii
Copy link
Collaborator

Finii commented Nov 1, 2022

@noefroidevaux You can find the newly patched Iosevka here:
https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.0-RC/Iosevka_makegroups.zip

The naming scheme changed with --makegroups a bit.
Please remove all patched Iosevkas before installing from the new zip.

@noefroidevaux
Copy link

@Finii Thank you! I removed the old font and installed the new one. And it seems all ok for me 😃👍

image

image

@Finii
Copy link
Collaborator

Finii commented Nov 1, 2022

Great to hear! Thanks for testing!

Do you have this font book thingy? And it issues no warnings anymore?

@noefroidevaux
Copy link

noefroidevaux commented Nov 1, 2022

@Finii I use the Font Book from macOS. But I'm on macOS Ventura (13, released last week). I don't see the warning with the old version of the font but, as you can see in the following screenshot, there was some problem (duplicates, some styles not activated) 🙂

image

Maybe someone who is always on macOS Monterey (12) can test? /cc @unikitty37 @PaulDoesDev @sizur

@unikitty37
Copy link
Contributor

No joy when I install them all, I'm afraid… (This is on macOS 12.6 (21G115). I didn't have any version of Iosevka installed before.)

image

Removing the NF versions fixes the issue and removes the messages for the Nerd Font versions; I'm not sure what the two versions are, as no filenames have NF in them. Is that the Windows ones? If so, are they even supposed to be installed together? (It might be a better idea to have Windows and Not-Windows folders to stop people installing both at once, if so…)

image

@noefroidevaux
Copy link

@unikitty37 Yes, I forgot to say that I only installed those that don't have "Windows Compatible" in the file name. Otherwise I also have the "NF" versions. /cc @Finii

@unikitty37
Copy link
Contributor

Ah, in that case, it's fixed. But it's definitely a pain to pick them out in an alphabetical list:

image

@Finii
Copy link
Collaborator

Finii commented Nov 2, 2022

Well, I would drop the Windows Compatible fonts completely, they are only needed for e.g. IE9 or some old MS-Word-for-Mac (!!!). (see #891)

They should have different names, ... I will check that.

Thank you for testing 🎉

Edit: Add link to discussion

@noefroidevaux
Copy link

Thank you for testing 🎉

Thank you to you!!!

@Finii Finii added this to the v2.3.0 milestone Dec 30, 2022
@Finii Finii closed this as completed in b98c2a1 Jan 15, 2023
@Finii
Copy link
Collaborator

Finii commented Jan 15, 2023

This makes it 3 fonts that have --makegroups

  • Cascadia Code
  • Iosevka
  • JetBrains Mono

Lets push out v2.3.0 and see how it fares and activated it for the remaining fonts in v3.0.0

@aravezskinteeth
Copy link

I have the same issue with VictorMono Nerd Font with the Bold Oblique and Bold Italic Weights. No issues with the unpatched font.

SCR-20230320-hry

SCR-20230320-hzx

SCR-20230320-i04

@Finii
Copy link
Collaborator

Finii commented Mar 20, 2023

Thanks for reporting.

Yes. All fonts suffer more of less that problem. This will be fixed in v3.0.0, which is due ... last week 😬

@aravezskinteeth
Copy link

hahaha ok I'll just wait patiently

@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests