D27380: [GTK Config] Write Font without style name
Mikhail Zolotukhin
noreply at phabricator.kde.org
Thu Feb 13 19:19:40 GMT 2020
gikari created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
gikari requested review of this revision.
REVISION SUMMARY
It has been reported, that on localized systems
the font style was written in local language.
Therefore config line was incorrectly read by
GTK and therefore applications displayed bad
font. To avoid that this commit is introduced.
This is not an ideal solution, because the selected
font style in font dialog will be ignored by GTK applications.
However, there is a workaround for that: you need to select a
font with the style in its family name. For example: "Inter"
with style "Medium" will be "Inter Medium". But some styles
do not have these "clones", e.g. Regular, Bold and Italic.
At least ignored style with very easy workaround is better, than
no ability to correctly apply a font at all with a very tedious
workaround aka "manually editing a lot of GTK config files and options".
TEST PLAN
1. Apply fonts with style and see, that it is not propagated to GTK configs.
2. Apply fonts with the same styles in their family name to see, that they are working correctly.
REPOSITORY
R99 KDE Gtk Configuration Tool
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D27380
AFFECTED FILES
kded/configvalueprovider.cpp
To: gikari
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200213/5c205918/attachment.html>
More information about the Plasma-devel
mailing list