Summary: | GTK applications do not accept a font with localized style name | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Ilya Bizyaev <bizyaev> |
Component: | kcm_style | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | awilfox, mail, me, nate |
Priority: | NOR | ||
Version: | 5.17.90 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Weird GTK previewers behavior |
Description
Ilya Bizyaev
2020-01-31 19:14:12 UTC
In 5,18, GTK apps should be using the same font that you've got configured in the fonts KCM. Is this what you're seeing, or are they using some random different font? > gtk-font-name="Some Font Обычный 13"
In the newest kde-gtk-config from 5.18 branch there should be comma after "Some font". If you add comma after "Some Font", would the font in GTK apps become the one, that is expected?
(In reply to Nate Graham from comment #1) > In 5,18, GTK apps should be using the same font that you've got configured > in the fonts KCM. Is this what you're seeing, or are they using some random > different font? They are using a random different font. (In reply to Mikhail Zolotukhin from comment #2) > > gtk-font-name="Some Font Обычный 13" > In the newest kde-gtk-config from 5.18 branch there should be comma after > "Some font". If you add comma after "Some Font", would the font in GTK apps > become the one, that is expected? No, and I thought that I am doing something wrong because editing both ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini did not affect the font that I saw in `gtk-query-settings | grep font` and apps. But then I tried using GTK theme previewers in System Settings, and they are able to detect the correct font... in a weird way. The font used by the GTK3 previewer depends on whether on not the GTK2 previewer has been used since the last GTK app launch. Plus, all this seems to affect fonts used in the KCM itself... (I attach the recording) All this is pretty weird to me, but I hope this helps. Created attachment 125598 [details]
Weird GTK previewers behavior
Do you have xsettingsd installed? (In reply to Mikhail Zolotukhin from comment #5) > Do you have xsettingsd installed? Yes, I do I confirm this issue after upgrading to Plasma 5.18.0 using Arch Linux. Firefox fonts doesn't look correct (as before), but rather like anti-aliasing is disabled (or maybe just different font). Content is not affected, only menus and interface. Any additional info I can provide? On my system still running 5.12 (not yet updated to 5.18), I'm seeing the following lines at the top of gtkrc-2.0 that I do not see on my 5.18 system: include "/usr/share/themes/Breeze/gtk-2.0/gtkrc" style "user-font" { font_name="Liberation Sans Regular" } widget_class "*" style "user-font" (In reply to A. Wilcox (awilfox) from comment #8) > On my system still running 5.12 (not yet updated to 5.18), I'm seeing the > following lines at the top of gtkrc-2.0 that I do not see on my 5.18 system: > > include "/usr/share/themes/Breeze/gtk-2.0/gtkrc" > style "user-font" > { > font_name="Liberation Sans Regular" > } > widget_class "*" style "user-font" This is unrelated. This bug happens, because gtk configuration files cannot read localized name of font style. The only solution I can provide on our side is to ignore selected style (Bold, Italic, Medium, Semibold, Condenced etc) for the font, that is selected under "Font Style" category in Font Selection dialog. This does not mean, that you cannot select the font with a given style, because there are fonts, that have these styles as part of the Family name. Please file a separate bug here (i.e. "systemsettings | kcm_style") for the Incorrect Firefox font issue. Thanks! *** This bug has been marked as a duplicate of bug 333146 *** |