https://bugs.kde.org/show_bug.cgi?id=403868
--- Comment #7 from Thomas Schöps <tom.scho...@gmail.com> --- Could it be that the real issue here is that there is a mismatch between the line height used in KTextEditor and the line height used internally in Qt for drawing? I had a look at https://github.com/qt/qtbase/blob/5.12/src/gui/text/qtextlayout.cpp (line 2270 at the moment) where the text height is set as: qreal height = maxY + fontHeight - minY; with fontHeight: qreal fontHeight = font.ascent() + font.descent(); For testing I then replaced the font height setting in KateRenderer::updateFontHeight() to match this with: m_fontHeight = qMax(1, qCeil(config()->fontMetrics().ascent() + config()->fontMetrics().descent())); The old resulting value was 14, the new one 15. From some short testing it seems that this makes the related issues disappear (at least for the font that is used on my system by default). I don't have more time to look into this right now though. The Qt code also seems to have a mechanism to adjust the font height according to the glyphs somehow (with maxY and minY). -- You are receiving this mail because: You are watching all bug changes.