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

QtWebEngine: Changing font through javascript call does not work for fonts that have "bold" or "regular" after the name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.7.0
    • WebEngine
    • Windows 7

    Description

      When trying to set a font that has "bold" or "regular" at the end of the name, default font is set for the web page. The call to set the font is:
      document.body.style.fontFamily = 'font name'

      Using the unsupported --single-process flag actually fixes this issue, but is not a feasible workaround. This problem is not specific to any special fonts, even the most basic fonts that come installed with Windows do not work.

      Steps to reproduce:

      • Run attached sample
      • Change font to any font that ends with word "bold" from the QFontComboBox
      • EXPECTED: Font is properly shown
      • ACTUAL: Default font is shown

      Attachments

        1. qtbug56398.zip
          1 kB
        2. screenshot-1.png
          screenshot-1.png
          365 kB

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              jussi_witick Jussi Witick
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes