D27380: [GTK Config] Write Font without style name

Benjamin Port noreply at phabricator.kde.org
Mon Feb 17 12:09:36 GMT 2020


bport added a comment.


  I think a good fix can be to use @davidedmundson solution combined with a check to know if font styleName is not set (if it set it will be not translated.
  
  I think
  QFont yourFont = QFont(...);
  auto f = QFontInfo(youFont)
  f.styleName(); <<=  is in theory empty if it's not enforced. In other case stuff based on enum will be ok. Goal of style name is to express "irregular" style name according to Qt documentation

REPOSITORY
  R99 KDE Gtk Configuration Tool

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

To: gikari, #plasma, ervin, bport, meven
Cc: 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/20200217/02f3ea0d/attachment.html>


More information about the Plasma-devel mailing list