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

--- Comment #3 from Friedrich W. H. Kossebau <kosse...@kde.org> ---
Notes for self/developer:

"QPainter::begin: Paint device returned engine == 0, type: 2" here the type 2
seems to be "Pixmap" from QInternal enum PaintDeviceFlags.
Okteta uses a QPixmap for caching the cursor (gui/cursor.cpp). Forcing that
QPixmap to be an 0x0 QPixmap results in the same log as reported:
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted

The size of the pixmap is calculated from args PixelX Width, PixelY Height,
qreal devicePixelRatio, where the width & height are taken (indirectly from the
QFontMetrics of the fixed size font. And devicePixelRatio is taken from the
widget (Qt). The latter being 0 would fail elsewhere I assume, so a working
theory here would be that either of or both the maxWidth() and height() have a
value of 0, perhaps due to broken font metadata.

So the font having some (unexpected) 0 values might explain the experienced
display. Testing with other fonts for the system fixed size/width font might
help to confirm that theory.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to