Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.1
-
None
-
(K)Ubuntu 16.04 LTS, xcb, KDE 5.18
-
6afdbfdaafcc4d24e08357dfea96b85787efb1f7 (qt/qtbase/5.12), bf8167c5f (dev), 82cc779ee (6.7)
Description
QFontDatabase::systemFont(QFontDatabase::FixedFont) returns proportional font returns:
Font( "Sans Serif,9,-1,2,50,0,0,0,0,0" )
See screenshot obtained with https://codereview.qt-project.org/#/c/164634/
See QKdeThemePrivate::refresh() at
qtbase/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp:305 ; it sets the QFont::TypeWriter hint on the default font unless one is set. Apparently, this is not sufficient.
Attachments
Issue Links
- is duplicated by
-
QTBUG-54847 FontDatabase returns serif when asking for fixed font
- Closed
- relates to
-
QTBUG-103484 rich text gets converted to monospace in CI because QFontDatabase::GeneralFont is "Sans Serif" and is monospace
- Reported
-
QTBUG-121410 tst_QFontDatabase::systemFixedFont() failed on Wayland
- Closed
-
QTBUG-987 QFontInfo::fixedPitch() can report false value
- Closed
-
QTBUG-75587 wasm doesn't have a mono font available
- Closed
-
QTBUG-75648 WinRT: QFontDatabase::systemFont(QFontDatabase::FixedFont) returns proportional font
- Closed
-
QTBUG-75649 Boot2Qt (QEMU): QFontDatabase::systemFont(QFontDatabase::FixedFont) returns proportional font
- Closed
-
QTBUG-79900 QFontDatabase::systemFont(QFontDatabase::FixedFont) returns proportional font
- Closed
- resulted in
-
QTBUG-99676 markdown (and html) import/export should not rely on use of a fixed-pitched font to remember a `monospace` span
- Closed
For Gerrit Dashboard: QTBUG-54623 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
164686,2 | QKdeTheme: Use default monospace font | 5.6 | qt/qtbase | Status: ABANDONED | 0 | 0 |
260070,2 | QTextMarkdownImporter: try harder to find a mono font | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
260075,7 | Use "monospace" as fallback system FixedFont in KDE theme; logging | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |
260945,2 | Use "monospace" as fallback system FixedFont in KDE theme; logging | dev | qt/qtbase | Status: MERGED | -2 | 0 |
537424,8 | tst_QTextMarkdownWriter: test both ways of setting font characteristics | dev | qt/qtbase | Status: MERGED | +2 | 0 |
540203,2 | tst_QTextMarkdownWriter: test both ways of setting font characteristics | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |