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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.4
    • 5.9.3, 5.10.0
    • GUI: Font handling, WebKit
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: