Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69633

Space character reset bidi level when QTextOption::ShowTabsAndSpaces is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.2
    • 5.11.1
    • GUI: Text handling
    • None
    • windows 10 64bit
    • Windows

    Description

      in Qt 5.11 there was huge fix for RTL languages as now we properly follow standard.

      But when you enable  QTextOption::ShowTabsAndSpaces in document

      all space characters is rendered as dots and it change flow of text.

      correct flow of text (without ShowTabsAndSpace )

       

      wrong (with ShowTabsAndSpace )

       

      In my text I use LTR mark(just after arabic letters) that change flow of text so 1920 x 1080 is properly rendered

      and on this line

      http://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/text/qtextengine.cpp#n2066

      engine reset bidi(for space) that broke text flow. I read Unicode document and it is right for Tab.

      But I don't see any reason to reset bidi for space and Nbsp as we just render something else on place of space character

       

      I made example app that enable/disable ShowTabsAndSpace so problem is visible

       

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              laknoll Lars Knoll
              miskol MICHAL LAZO
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes