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

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

      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

        1. qtbug56398.zip
          1 kB
          Jussi Witick
        2. screenshot-1.png
          365 kB
          DAYOUNG LIM
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes