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

QTextHTMLParser hardcodes Courier for <pre></pre> blocks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.1
    • 5.5.1
    • None
    • agnostic
    • 8b4ac65e2913bd7fbdd996ca290b129659f89a9e

    Description

      QVector<QCss::Declaration> standardDeclarationForNode(const QTextHtmlParserNode &node) contains hardcoded requests for Courier New and courier in its treatment of Html_pre nodes. This gives rather surprising results in environments where the default or configured fixed-width font is visually very different from Courier (= almost all modern environments).

      Is there any reason why the correct monospace font isn't looked up and used instead?

      Attachments

        For Gerrit Dashboard: QTBUG-50564
        # Subject Branch Project Status CR V

        Activity

          People

            apol Aleix Pol
            rjvbertin René Bertin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes