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

[REG 5.3->5.4] Soft-hyphen not visible at end of line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0 Beta
    • 5.4.0
    • GUI: Text handling
    • None
    • Arch Linux, Windows
    • cd1cdd1516c7904902e08a26605f9e62032489fe

    Description

      When a word is broken due to a QChar::SoftHyphen, the hyphen should be visible. See attached test case and result.

      bug.cpp
      #include <QApplication>
      #include <QTextEdit>
      #include <QString>
      
      int main(int argc, char *argv[]) {
          QApplication app(argc, argv);
      
          QTextEdit edit;
          edit.setText(QString("Onebigass") + QChar::SoftHyphen + QString("mofoword"));
          edit.resize(100, 50);
          edit.show();
      
          return app.exec();
      }
      
      Expected result
      Onebigass-
      mofoword
      
      Actual result (see screenshot)
      Onebigass
      mofoword
      

      Attachments

        1. bug.png
          bug.png
          7 kB
        2. bug.zip
          1 kB
        3. qt_4_8_6_when_justified.png
          qt_4_8_6_when_justified.png
          12 kB
        4. qt4_8_6.png
          qt4_8_6.png
          7 kB
        5. qt5_4_0_harfbuzz_old.png
          qt5_4_0_harfbuzz_old.png
          15 kB
        6. qtbug44234.ui
          2 kB

        Issue Links

          Activity

            People

              ritt.ks Konstantin Ritt
              estan Elvis Stansvik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: