Bug 2093975

Summary: Default monospace font should be Source Code Pro
Product: Red Hat Enterprise Linux 9 Reporter: Michael Catanzaro <mcatanza>
Component: gsettings-desktop-schemasAssignee: Carlos Garnacho <cgarnach>
Status: CLOSED ERRATA QA Contact: Jiri Prajzner <jprajzne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.1CC: tagoh, tpelka, tpopela
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gsettings-desktop-schemas-40.0-6.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:21:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2094195    
Bug Blocks:    

Description Michael Catanzaro 2022-06-06 13:30:43 UTC
Source Code Pro is available in RHEL 9 according to https://bugzilla.redhat.com/show_bug.cgi?id=2093244#c6, so it should be our default monospace font, to avoid diverging from upstream. We can simply drop the org.gnome.desktop.interface.rhel.gschema.override. Note this file exists upstream, so it should be removed in Fedora as well.

This change will break all systems which do not have Source Code Pro installed unless a different monospace font is manually configured. This is OK because gsettings-desktop-schemas has a Recommends: font(sourcecodepro). Tools that ignore Recommends do so at their peril. We should make sure that it gets installed properly when installing RHEL.

Comment 1 Tomas Popela 2022-06-06 13:42:30 UTC
Also we should make sure that whatever change is done, then it's propagated to Fedora so it gets through Fedora ELN into RHEL 10.

Comment 2 Michael Catanzaro 2022-06-06 13:48:31 UTC
It doesn't seem to be available in BaseOS or AppStream:

$ sudo dnf install adobe-source-code-pro-fonts
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - AppStre 6.6 MB/s | 7.8 MB     00:01    
Red Hat Enterprise Linux 9 for x86_64 - BaseOS  2.0 MB/s | 2.1 MB     00:01    
Last metadata expiration check: 0:00:01 ago on Mon 06 Jun 2022 08:46:08 AM CDT.
No match for argument: adobe-source-code-pro-fonts
Error: Unable to find a match: adobe-source-code-pro-fonts

Comment 3 Tomas Popela 2022-06-06 13:54:27 UTC
(In reply to Michael Catanzaro from comment #2)
> It doesn't seem to be available in BaseOS or AppStream:

Looking into it again, it's part of the BUILDROOT repository and it's maintained by Akira, maybe he's willing to move it into AppStream.

Comment 4 Tomas Popela 2022-07-25 11:30:34 UTC
The package was moved to AppStream, should we proceed with this change?

Comment 5 Michael Catanzaro 2022-07-25 12:53:50 UTC
I'll make this change in ELN now.

Not sure if changing this in RHEL 9 is worth it or not. It would break 9.0 -> 9.1 upgrades for anyone who doesn't already have the font installed unless we have some way to pull it in on upgrades.

Comment 6 Michael Catanzaro 2022-07-25 13:24:07 UTC
(In reply to Michael Catanzaro from comment #0)
> This change will break all systems which do not have Source Code Pro
> installed unless a different monospace font is manually configured. This is
> OK because gsettings-desktop-schemas has a Recommends: font(sourcecodepro).
> Tools that ignore Recommends do so at their peril.

OK, should be good then...

> We should make sure that
> it gets installed properly when installing RHEL.

...assuming anaconda respects the Recommends. But I don't know whether it actually does.

Comment 8 Carlos Garnacho 2022-11-23 00:12:04 UTC
Fixed in gsettings-desktop-schemas-40.0-5.el9.

Comment 10 Michael Catanzaro 2022-12-21 17:21:22 UTC
So this revealed a problem. Because Source Code Pro was in buildroot for 9.0, and only entered AppStream in 9.1, anyone who has RHEL 9.0 installed and upgrades that to 9.2 will not get Source Code Pro installed. The Recommends in the gsettings-desktop-schema spec file are not applied on upgrade.

Suggestion is to change the Recommends to Requires in RHEL 9.

Comment 11 Michael Catanzaro 2022-12-21 17:21:44 UTC
(In reply to Michael Catanzaro from comment #10)
> Suggestion is to change the Recommends to Requires in RHEL 9.

Tomas Popela plans to implement this change.

Comment 16 errata-xmlrpc 2023-05-09 08:21:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (gsettings-desktop-schemas bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2524