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

QTextHtmlExporter::emitFontFamily emits quotes around generic font names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.6
    • GUI: Text handling
    • None
    • Windows

    Description

      The routine emits quotes around each family name.  This creates invalid HTML, as the generic font names get quoted as well.  Eg, myTextCursor->setFontFamily("monospace") will output style=" font-family:'monospace';"  This is incorrect see https://drafts.csswg.org/css-fonts/#typedef-generic-family has the sentence:

      Note that <generic-family> keywords cannot be quoted (otherwise they are interpreted as a <family-name>).

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            trietwyk Tony Rietwyk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes