Bug 1910361 - Fonts are listed multiple times in Gnome programs
Summary: Fonts are listed multiple times in Gnome programs
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-font-viewer
Version: 33
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Rui Matos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-23 15:26 UTC by Luis Ortega
Modified: 2021-11-30 18:54 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-11-30 18:54:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
An example of the issue. (50.67 KB, image/png)
2020-12-23 15:26 UTC, Luis Ortega
no flags Details
Another example, even more severe. (70.51 KB, image/png)
2020-12-23 15:27 UTC, Luis Ortega
no flags Details
Another example, this one is IBM Plex Sans, installed from the Fedora repositories. (63.99 KB, image/png)
2020-12-23 15:28 UTC, Luis Ortega
no flags Details

Description Luis Ortega 2020-12-23 15:26:40 UTC
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.

Comment 1 Luis Ortega 2020-12-23 15:27:20 UTC
Created attachment 1741580 [details]
Another example, even more severe.

Comment 2 Luis Ortega 2020-12-23 15:28:30 UTC
Created attachment 1741581 [details]
Another example, this one is IBM Plex Sans, installed from the Fedora repositories.

Comment 3 Luis Ortega 2020-12-23 15:34:13 UTC
Libreoffice doesn't show the same behavior.

Comment 4 Luis Ortega 2020-12-23 15:54:20 UTC
gnome-font-viewer shows this issue in a minor way, only some fonts like SF Mono are affected.

Comment 5 Matthias Clasen 2021-04-16 00:23:15 UTC
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.

Comment 6 Jens Petersen 2021-04-17 09:50:17 UTC
(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.

Comment 7 Jens Petersen 2021-04-17 09:52:05 UTC
(To be clear, I mean we can separate the vf and non-vf fonts into separate subpackages.
We do this for google-noto-fonts.)

Comment 8 Nicolas Mailhot 2021-04-17 10:06:14 UTC
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).

Comment 9 Nicolas Mailhot 2021-04-17 10:09:22 UTC
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.

Comment 10 Nicolas Mailhot 2021-04-17 10:18:34 UTC
(Well actually fonctonfig defined all the merging logic 18 years ago, even though other OSes where quite late to copy the design)

Comment 11 Ben Cotton 2021-11-04 13:54:31 UTC
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.

Comment 12 Ben Cotton 2021-11-04 14:23:57 UTC
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.

Comment 13 Ben Cotton 2021-11-04 15:21:34 UTC
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.

Comment 14 Ben Cotton 2021-11-30 18:54:14 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.