<table><tr><td style="">cullmann created this revision.<br />cullmann added a reviewer: KTextEditor.<br />Restricted Application added projects: Kate, Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />cullmann requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10145" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I played a bit more with KTextEditor on macOS.<br />
It seems we are too restrictive what we use as line height.<br />
The attached patch increases the height by the leading, both in the computation in the renderer for line height + layouting.</p>

<p>I still get some artifacts like in <a href="https://bugs.kde.org/show_bug.cgi?id=379727" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=379727</a></p>

<p>But I think that is more likely some rendering mis-shape in Qt itself, as you get even artifacts vertically inside a line during the drawing...</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>For me, less overlapping of lines occur in different zoom variants.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10145" rel="noreferrer">https://phabricator.kde.org/D10145</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/render/katerenderer.cpp</div></div></div><br /><div><strong>To: </strong>cullmann, KTextEditor<br /><strong>Cc: </strong>Frameworks, michaelh, kevinapavew, ngraham, demsking, cullmann, sars, dhaumann<br /></div>