[frameworks-kwidgetsaddons] [Bug 378523] KFontRequester: Fonts are saved with face name preventing bold/italic to work

Christoph Feck bugzilla_noreply at kde.org
Wed Jun 14 00:12:23 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=378523

Christoph Feck <cfeck at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdelibs-bugs at kde.org
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1
             Status|RESOLVED                    |REOPENED
            Version|16.12.3                     |unspecified
            Product|konsole                     |frameworks-kwidgetsaddons
           Assignee|konsole-devel at kde.org       |cfeck at kde.org
          Component|font                        |general
            Summary|Bold fonts not displaying   |KFontRequester: Fonts are
                   |when proper settings        |saved with face name
                   |checked                     |preventing bold/italic to
                   |                            |work

--- Comment #3 from Christoph Feck <cfeck at kde.org> ---
I analyzed the issue and came to the conclusion that it is a bug in
KFontRequester not correctly handling the font matching since Qt 5.8.0.

The issue is that KFontRequester tries to find the selected font (or the
nearest matching font) in the QFontDatabase. If it finds it there, it actually
updates the selected font to what it found there.

For example, if you had selected "Noto Sans", it will scan the database
including selected weight and style attributes, and find "Noto Sans Regular" as
the best match. Once this match is saved, however, the attributes implied by
the font face name takes precedence over the attributes specified by the
application.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list