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

Letter-Spacing in QTextDocument::toHtml()

    XMLWordPrintable

Details

    • 96cea3b1681dd24a0ec3a53078b78f902e3211a6 (qt/qtbase/dev) 31048d97ac4ebbacd47e8474887a2bf0c232f2dd (qt/qtbase/5.15)

    Description

      letter-spacing and word-spacing of QFont, when saved in html format, are not stored in String.

          QFont myDatumSpezialFont = QFont("Arial", 12, QFont::Normal);
          myDatumSpezialFont.setLetterSpacing(QFont::AbsoluteSpacing, 13);
          myDatumSpezialFont.setWordSpacing(15);
       
          QTextDocument test("This is a test");
          test.setDefaultFont(myDatumSpezialFont);
          QString s0 = test.toHtml();
      
      

      Like with above code, we won’t see any information about letter-spacing or word-spacing in the saved HTML string

      Attachments

        Issue Links

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

          Activity

            People

              andysh Andy Shaw
              shmittal Shveta Mittal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes