D11237: Clip character drawing to its own cell
Mariusz Glebocki
noreply at phabricator.kde.org
Sun Mar 11 16:52:36 UTC 2018
mglb created this revision.
mglb added a reviewer: Konsole.
mglb added a project: Konsole.
mglb requested review of this revision.
REVISION SUMMARY
To calculate string width, Konsole uses character cell widths.
Rendering engine uses actual characters widths for this purpose.
Those sizes are equal in fixed-width fonts, as long as the font
has specific character. Since no font contains all Unicode characters,
some of them are taken from different fonts and their sizes differ
from their cell size. This can lead to different results depending
on how text line is split into strings.
It can be assumed that characters in Basic Latin block in every
fixed-width font are really fixed-width, and can be rendered as one
string. All other characters are rendered separately, and their
rendering surface is limited to their cell.
Before/After screenshots:
F5749612: clipping.png <https://phabricator.kde.org/F5749612>
BUG: 361547
TEST PLAN
Paste this: `⸻test` in konsole and highlight different parts of the string
In a text editor paste this:
| A |
| ⸻ |
| ⟹ |
| ⧠ |
and move cursor vertically through characters column
REPOSITORY
R319 Konsole
REVISION DETAIL
https://phabricator.kde.org/D11237
AFFECTED FILES
src/TerminalDisplay.cpp
To: mglb, #konsole
Cc: #konsole, herrold, ngraham, hindenburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20180311/1279ebf1/attachment.html>
More information about the konsole-devel
mailing list