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

Rendering of text with embedded fonts above a certain size broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.8.0
    • WebKit
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes