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

QRawFont, constructed from QByteArray, cannot be rendered (CoreText engine)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.9.3, 5.10.0
    • Fix Version/s: 5.9.4
    • Component/s: GUI: Font handling, WebKit
    • Labels:
      None

      Description

      Patch https://codereview.qt-project.org/#/c/190803 (first released in Qt 5.9) introduced a regression in QtWebKit, which results in web fonts becoming invisible in QtWebKit on some pages (see attached screenshots). Web font is implemented as QRawFont object loaded from QByteArray. It was found, that replacing

      fontData.toRawCFData()
      

      with

      fontData.toCFData()
      

      in method

      QCoreTextFontEngine::create(const QByteArray &, qreal, QFont::HintingPreference)
      

      makes this bug disappear, which suggests there is an issue with life time management of the font data inside QtGui (QtWebKit operates on QRawFont public API and doesn't try to mess with fontengine internals)

      It is not yet determined how to reproduce this bug outside of QtWebKit

        Attachments

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

          Activity

            People

            • Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              annulen Konstantin Tokarev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes