From bb5ef879586c6a0c7739342f475e80000584d61e Mon Sep 17 00:00:00 2001 From: Maximiliano Curia Date: Sat, 28 Jan 2017 21:09:09 +0100 Subject: [PATCH] Add the _lineSpacing value set by the user. This setting is intended to be used to workaround fonts that lack some characters that are taller than _fontAscent REVIEW: 129901 --- src/TerminalDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp index d607c886..c813e117 100644 --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -856,9 +856,9 @@ void TerminalDisplay::drawCharacters(QPainter& painter, painter.setLayoutDirection(Qt::LeftToRight); if (_bidiEnabled) { - painter.drawText(rect.x(), rect.y() + _fontAscent, text); + painter.drawText(rect.x(), rect.y() + _fontAscent + _lineSpacing, text); } else { - painter.drawText(rect.x(), rect.y() + _fontAscent, LTR_OVERRIDE_CHAR + text); + painter.drawText(rect.x(), rect.y() + _fontAscent + _lineSpacing, LTR_OVERRIDE_CHAR + text); } } } -- GitLab