Restore Bi-Directional text support

Authored by mglb on May 2 2018, 1:57 PM.

Description

Restore Bi-Directional text support

Summary:
Fix regression introduced by commit a565bc9 (Clip character drawing
to its own cell). When the first character in a text fragment is
classified as RTL, rest of the fragment is also considered to be RTL
and is passed to drawText() as one string. The rendering is not
perfect (especially when RTL and LTR characters are mixed), but it
works as before.

BUG: 393644

Test Plan:

  • Display example sentences using a program which prints text directly to terminal (e.g. echo, cat):
حروف به هم پیوسته

کِی‌دی‌ئی (به انگلیسی: KDE) پروژه‌ای برای توسعه یک
میزکار آزاد و متن باز است.

Reviewers: Konsole, sassanh, hindenburg

Reviewed By: Konsole, sassanh, hindenburg

Subscribers: hindenburg, Konsole

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D12655

Details

Committed
hindenburgMay 3 2018, 12:46 AM
Reviewer
Konsole
Differential Revision
D12655: Restore Bi-Directional text support
Parents
R319:1bc36c2cdb96: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown