D25339: KateRenderer: Use representitive character in CJK to estimate the fontHeight.

Xuetian Weng noreply at phabricator.kde.org
Sat Apr 18 01:35:00 BST 2020


xuetianweng added a comment.


  In D25339#563937 <https://phabricator.kde.org/D25339#563937>, @cullmann wrote:
  
  > Actually, I could live with:
  >
  > 1. All lines are a bit higher, for me that makes reading even easier. But the rendering shall have no glitches.
  > 2. Some lines have different heights. But I assume this is hard to implement at the moment.
  
  
  After some experiment and reading the Qt code, seems there is no easy way to extend the line height..
  E.g. QPlainTextEdit will show the text with different line height, so I believe I couldn't do it with in Qt.
  
  So I tried to use a small trick to fill the gap.
  If there is some gap need to be filled, then the code tried to draw some transparent text so the background will be extended to fill the gap. Then draw the real text.
  
  The solution is hacky though.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D25339

To: xuetianweng, #ktexteditor, cullmann, dhaumann
Cc: anthonyfieroni, kde-frameworks-devel, kwrite-devel, rrosch, LeGast00n, cblack, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20200418/168beb8a/attachment.html>


More information about the KWrite-Devel mailing list