Bug 27399 - Some Gtk applications (e.g. Firefox) do not show the font configured for gtk applications in KDE system settings
Summary: Some Gtk applications (e.g. Firefox) do not show the font configured for gtk ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2020-10-13 12:19 CEST by Jose Manuel López
Modified: 2021-02-05 17:21 CET (History)
2 users (show)

See Also:
Source RPM: Firefox and Thunderbird
CVE:
Status comment:


Attachments
Showing a KDE font configuration for Gtk applications (60.71 KB, image/png)
2020-10-14 22:05 CEST, Lewis Smith
Details
Showing that the changed font *does* show up in some Gtk applications (171.74 KB, image/png)
2020-10-14 22:11 CEST, Lewis Smith
Details

Description Jose Manuel López 2020-10-13 12:19:21 CEST
Description of problem:Firefox and Thunderbird don't show correctly the font configured for gtk applications in Plasma preferences, I have configured a Dejavu Sans, size 9. Firefox and Thunderbird is showing a larger font.


Version-Release number of selected component (if applicable): Mageia 7, Firefox and Thunderbird


How reproducible: Install Firefox or Thunderbird. Configure the gtk font in Plasma preferences.


Steps to Reproduce:
1. Configure a font in Plasma preferences.
2. Open Firefox or Thunderbird
3. This applications don't show the font configured in Plasma preferences.
Comment 1 Lewis Smith 2020-10-13 20:59:07 CEST
Thank you for the report, but...
> Configure a [gtk] font in Plasma preferences
> I have configured a Dejavu Sans, size 9
In what category of use? I see no mention of 'gtk' fonts as such.

Please can you explain in more detail exactly the steps you took to do this.
Just having looked at it, I followed Plasma System Settings-Fonts-Fonts which shows a dialogue with categories of use (not including Browser or E-mail client) and the font selectable for each one; plus an 'Adjust all fonts' button which I guess does the whole lot in one go to all be the same.

And where would you hope the definition to be apparent in say Firefox? Or any other GTK application? Not only does Firefox have its own font configuration for standard/general use (whatever that means: Preferences-General-Fonts & Colours-Standard/General font), but of course web pages mostly dictate their own fonts.

Source RPM: gtk3 applications Firefox and Thunderbird => Firefox and Thunderbird
Keywords: (none) => NEEDINFO
CC: (none) => lewyssmith

Comment 2 Jose Manuel López 2020-10-14 08:13:52 CEST
The gtk fonts are configured in the "Application style> Gnome / GTK application style" section.

There you can configure the GTK theme for GTK2, GTK3 applications and the font.
Comment 3 Lewis Smith 2020-10-14 22:01:38 CEST
Thank you for the 'how to do it' pointer. You should know that this Gtk/Gnome functionality in KDE System Settings is not in Mageia 8. So it cannot be important.
BTAIM I changed the font to something obvious to see in the KDE control centre as you pointed, and will attach a screenshot showing that.

Having done so, Firefox, as you say, took no notice. Nor another major thing I think is Gtk, LibreOffice (no visible effect).
But Gimp *did* show the new font. Without researching what system different applications used (Gtk|Qt), I found some Gtk others which *did* show the change: Claws-mail (but not Clawsker!), and two for which I shall attach a screenshot showing the defined font. I could see no affect on any Gnome application I tried - which are so bare as to have almost no text anyway.

The change you are trying clearly does work with some Gtk applications, and why it does not with others is ? Possibly a Gtk2|3 difference (MGA8 will have only 3). The change does not necessarily apply throughout the applications that show it.

For Firefox, it seems that its own font definition is for the display of web pages which do not specify their own.

Severity: normal => minor
Summary: Firefox and Thunderbird don't catch the font configured for gtk applications => Some Gtk applications (e.g. Firefox) do not show the font configured for gtk applications in KDE system settings

Comment 4 Lewis Smith 2020-10-14 22:05:42 CEST
Created attachment 11939 [details]
Showing a KDE font configuration for Gtk applications

And while posting this with a Gtk browser (IceApe), I notice that the file selection dialogue shows the revised font...
Comment 5 Lewis Smith 2020-10-14 22:11:34 CEST
Created attachment 11940 [details]
Showing that the changed font *does* show up in some Gtk applications

This screenshot shows two Gtk applications displaying the changed font: FileZilla behind, HexChat in front.

This bug is so trivial, are you Jose willing for it to be closed? Especially as I do not think the functionality will exist in MGA8.
Comment 6 Jose Manuel López 2020-10-14 23:17:09 CEST
Well, we can close the matter. I'll wait for Mageia 8. It is possible that I will install it from the Beta to see how it goes.

Resolution: (none) => OLD
Status: NEW => RESOLVED

Comment 7 Aurelien Oudelet 2021-02-05 17:21:51 CET
Now fonts are applied automatically by the Systemsettings5 => Application Style
and Configure GNOME/GTK Application Style... button.

This is fixed in M8.

CC: (none) => ouaurelien
Resolution: OLD => FIXED


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