Bug 2235254

Summary: monospace font suddenly looks different after adobe-source-code-pro-fonts-2.042.1.062.1.026-1.fc38
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: adobe-source-code-pro-fontsAssignee: Robert-André Mauchin 🐧 <eclipseo>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: eclipseo, fonts-bugs, georgmueller, mark, mattrose, mfabian, petersen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.042.1.062.1.026-2.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-06 07:33:29 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:
Attachments:
Description Flags
before update
none
after update
none
total garbage after update none

Description Kamil Páral 2023-08-28 07:52:24 UTC
Description of problem:
GNOME uses Source Code Pro Regular 10 as a monospace font, so it's visible e.g. in gnome-terminal or gnome-text-editor. With adobe-source-code-pro-fonts-2.042.1.062.1.026-1.fc38, the characters now look grayer, less black, it's very hard to read it now. I assume this is a bug, but if it's not, this is not an expected change in a stable release.

Version-Release number of selected component (if applicable):
adobe-source-code-pro-fonts-2.042.1.062.1.026-1.fc38    # hard to read
adobe-source-code-pro-fonts-2.030.1.050-14.fc38.noarch  # looks as expected

How reproducible:
always

Steps to Reproduce:
1. open gnome-terminal or gnome-text-editor, look at the font
2. update to adobe-source-code-pro-fonts-2.042.1.062.1.026-1.fc38
3. reopen the app and look at the font again, it's much harder to read

Comment 1 Kamil Páral 2023-08-28 07:52:45 UTC
Created attachment 1985594 [details]
before update

Comment 2 Kamil Páral 2023-08-28 07:52:50 UTC
Created attachment 1985595 [details]
after update

Comment 3 Georg Müller 2023-08-28 09:10:06 UTC
Created attachment 1985598 [details]
total garbage after update

For me, after the update, the font was completely broken in gnome terminal.

I can solve this by selecting another font for the profile

Comment 4 Georg Müller 2023-08-28 09:15:08 UTC
Output from systemctl --user:

Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Light 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Light 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Bold 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Bold 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Light Italic 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Light Italic 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Bold Italic 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: failed to create cairo scaled font, expect ugly output. the offending font is 'Source Code Pro Bold Italic 11'
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: font_face status is: file not found
Aug 28 10:58:33 nb-georg gnome-terminal-[4518]: scaled_font status is: file not found

Comment 5 Parag Nemade 2023-08-28 11:43:17 UTC
I see @

Comment 6 Parag Nemade 2023-08-28 11:44:47 UTC
I see @zebob.m has updated this package as part of bug 2087984 fix.

Comment 7 Robert-André Mauchin 🐧 2023-08-28 17:01:52 UTC
Ok so we updated the packaged to the latest version.

Searching for failed to create cairo scaled font, expect ugly output, often talk about a permission issue, but checking on my system does not reveal any:

ll /usr/share/fonts/adobe-source-code-pro-fonts/
.rw-r--r--@ 134k root 12 avril 11:05 SourceCodePro-Black.otf
.rw-r--r--@ 112k root 12 avril 11:05 SourceCodePro-BlackIt.otf
.rw-r--r--@ 134k root 12 avril 11:05 SourceCodePro-Bold.otf
.rw-r--r--@ 110k root 12 avril 11:05 SourceCodePro-BoldIt.otf
.rw-r--r--@ 125k root 12 avril 11:05 SourceCodePro-ExtraLight.otf
.rw-r--r--@ 106k root 12 avril 11:05 SourceCodePro-ExtraLightIt.otf
.rw-r--r--@ 108k root 12 avril 11:05 SourceCodePro-It.otf
.rw-r--r--@ 130k root 12 avril 11:05 SourceCodePro-Light.otf
.rw-r--r--@ 108k root 12 avril 11:05 SourceCodePro-LightIt.otf
.rw-r--r--@ 131k root 12 avril 11:05 SourceCodePro-Medium.otf
.rw-r--r--@ 107k root 12 avril 11:05 SourceCodePro-MediumIt.otf
.rw-r--r--@ 131k root 12 avril 11:05 SourceCodePro-Regular.otf
.rw-r--r--@ 132k root 12 avril 11:05 SourceCodePro-Semibold.otf
.rw-r--r--@ 109k root 12 avril 11:05 SourceCodePro-SemiboldIt.otf

and we use the standard Fonts macros.

We changed the fontconfig.conf but it doesn't seem to be the problem.

Can't repro on KDE Plasma. It seems to be a GNOME problem with the new version.

Comment 8 Robert-André Mauchin 🐧 2023-08-28 17:28:36 UTC
fc-match "Source Code Pro:style=Bold"
SourceCodePro-Light.otf: "Source Code Pro" "Light"

That's bad

Found the issue, the fontconfig filename is wrong:

sudo mv /usr/share/fontconfig/conf.avail/61-adobe-source-code-pro-fonts-fontconfig.conf /usr/share/fontconfig/conf.avail/61-adobe-source-code-pro-fonts.conf

fc-match "Source Code Pro:style=Bold"
SourceCodePro-Bold.otf: "Source Code Pro" "Bold"

That's better.

Fix incoming.

Comment 9 Robert-André Mauchin 🐧 2023-08-30 17:15:21 UTC
Feedback was okay:

https://bodhi.fedoraproject.org/updates/FEDORA-2023-811260388f

Comment 10 Jens Petersen 2023-09-06 07:33:29 UTC
Okay that's right - the broken build was unpushed.
I guess the exception is not really necessary: the latest version build can be tested
by enabling updates-updating