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

Rendering of text with embedded fonts above a certain size broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Component/s: WebKit
    • Labels:
      None
    • Environment:
      Linux x64

      Description

      Attached test.html and Ubuntu-R.ttf files demonstrate the problem. Text at 12pt is rendered, same text at 40pt is not rendered. If the system version of the font is used instead of the embedded version, both texts are rendered.

      Happens in both webkit and webkit-ng

      I use the following simple one-liner as a minimal test case, it uses PyQt. This assumes the attached files have been placed in the /tmp directory.

      python3 -c "from PyQt5.Qt import *; app=QApplication([]); w = QWebView(); w.setUrl(QUrl.fromLocalFile('/tmp/test.html')); w.show(); app.exec_()"

        Attachments

        1. test.html
          0.4 kB
        2. Ubuntu-R.ttf
          346 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            annulen Konstantin Tokarev
            Reporter:
            kovidgoyal Kovid Goyal
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes