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

QPainter::drawText is broken with complex brushes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.0
    • 5.0.0
    • GUI: Painting
    • None
    • 73187281c3f88b7a709713a2b09fb43871ea6b6d

    Description

      Commit d52fd497f60a3c4456994f4f10e9451d611c9ea4 introduced an optimization to omit glyphs from being rendered if they're outside the "viewport". At the same time the patch introduced a call path to QPaintEngineEx::drawStaticTextItem, where previously QPaintEngine::drawTextItem was taken. Both functions end up filling a path with text and rendering it, but the former has a bug in that it doesn't respect the painter's brush properly.

      This causes a WebKit layout test (fast/canvas/2d.text.draw.fill.maxWidth.gradient.html) to fail. This is tracked upstream at https://bugs.webkit.org/show_bug.cgi?id=74785

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            shausman Simon Hausmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes