D27380: [GTK Config] Construct font style by hand instead of relying on Qt function

Lionel Chauvin noreply at phabricator.kde.org
Thu Feb 20 22:42:24 GMT 2020


chauvin added inline comments.

INLINE COMMENTS

> chauvin wrote in configvalueprovider.cpp:50
> I observed a different behavior with ~/.gtkrc-2.0 (libgtk version 2.62.1)
> There is perhaps a difference betwen gtk2 and gtk3

Sorry I missread the version of libgtk2.0 it is 2.24.32  (not 2.62.1)

It works with the following line in  ~/.gtkrc-2.0:

  gtk-font-name="Ubuntu, Light 11"



  gtk-font-name="Ubuntu Light Regular 11"

but it doesn't work with:

  gtk-font-name="Ubuntu Light, Regular 11"

So I assume it is a bug in gtk2 parser and the comma is not the problem

I am not sure but I think the parsing is done in this function:
https://github.com/GNOME/pango/blob/mainline/pango/fonts.c#L1265 <https://github.com/GNOME/pango/blob/mainline/pango/fonts.c#L1265>

REPOSITORY
  R99 KDE Gtk Configuration Tool

REVISION DETAIL
  https://phabricator.kde.org/D27380

To: gikari, #plasma, ervin, bport, meven, davidedmundson
Cc: chauvin, davidre, davidedmundson, cfeck, ngraham, IlyaBizyaev, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, 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/20200220/667921d0/attachment.html>


More information about the Plasma-devel mailing list