Created attachment 1741579 [details] An example of the issue. Description of problem: Some fonts are listed multiple times Version-Release number of selected component (if applicable): 3.34.1. How reproducible: Always, but I only noticed after I had upgraded the system completely, after a fresh install. Steps to Reproduce: 1. Install gnome-tweaks 2. Go to fonts -> open any font chooser 3. Look at how some fonts are listed multiple times Actual results: Some fonts are listed multiple times. Expected results: Fonts are listed once for every weight/slant. Additional info: Cantarell, Droid Sans, the IBM Plex families suffer from this. Even 3rd party fonts like Apple's San Francisco Fonts. I don't think it's a problem with the fonts themselves since I've used other Linux OS with these same fonts (either from their repositories or downloaded from Google's pages or Apple's pages) and they were fine. This also happens on other gnome programs, such as the terminal and gedit. The program "gucharmap" doesn't suffer from this though.
Created attachment 1741580 [details] Another example, even more severe.
Created attachment 1741581 [details] Another example, this one is IBM Plex Sans, installed from the Fedora repositories.
Libreoffice doesn't show the same behavior.
gnome-font-viewer shows this issue in a minor way, only some fonts like SF Mono are affected.
This happens because the fonts are present multiple times on the system, and they are actually different fonts: $ fc-list cantarell /usr/share/fonts/cantarell/Cantarell-Light.otf: Cantarell,Cantarell Light:style=Light,Regular /usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Bold /usr/share/fonts/cantarell/Cantarell-Bold.otf: Cantarell:style=Bold /usr/share/fonts/cantarell/Cantarell-ExtraBold.otf: Cantarell,Cantarell Extra Bold:style=Extra Bold,Regular /usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Light /usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Regular /usr/share/fonts/cantarell/Cantarell-Thin.otf: Cantarell,Cantarell Thin:style=Thin,Regular /usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell /usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Extra Bold /usr/share/fonts/cantarell/Cantarell-Regular.otf: Cantarell:style=Regular /usr/share/fonts/cantarell/Cantarell-VF.otf: Cantarell:style=Thin Arguably a packaging bug - It is enough to install Cantarell-VF.otf, it provides all the styles. No need to duplicate them all with their own otf file.
(In reply to Matthias Clasen from comment #5) > It is enough to install Cantarell-VF.otf, it provides all the styles. > No need to duplicate them all with their own otf file. This makes sense to me. I think we should start with Rawhide, if we can go ahead.
(To be clear, I mean we can separate the vf and non-vf fonts into separate subpackages. We do this for google-noto-fonts.)
Please do not, all apps do not support vf yet, we need to ship both a few years while the application stack evolves. The Gnome font chooser needs to merge vf and non vf cleanly (ie behave like an application, display a single entry for each font face, and autoselect amid the pile of font files and formats available on disk the best one to render requested text). That’s no different from the previous font format changes when for a while some faces where available as PS and TTF and font choosers and apps had to sort and merge the result (it’s sad we seem to have regressed, too many years with a single dominant format it seems).
Also as the Plex screenshot shows some big modern font families are split over coverage lines into multiple files, so the merging absolutely needs to occur even in presence of a single font format, whoever imagined the one file = one entry in the chooser did not understand how modern fonts work.
(Well actually fonctonfig defined all the merging logic 18 years ago, even though other OSes where quite late to copy the design)
This message is a reminder that Fedora 33 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '33'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 33 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.