Commit bb5ef879 authored by Maximiliano Curia's avatar Maximiliano Curia

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
parent 555866a0
......@@ -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);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment