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

Fix text rendering with texture brushes properly in the GL2 engine

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • P2: Important
    • 4.7.1
    • None
    • GUI: OpenGL
    • None

    Description

      When drawing text using glyphs, the shader manager will select the "MaskFragmentShader" which requires a varying called "textureCoords" which is used to sample the glyph from the glyph texture. That's fine, except when you try to use one of the pattern brushes or a texture brush, because the src pixel fragment shader snippets for those brushes also sample from a texture (the brush texture) and use the very same "textureCoords" varying. As a quick fix for Qt 4.7.0, in these cases the engine will fall back to path rendering rather than use glyphs. However, that doesn't work for static text as there's nothing to fall back to.

      This needs to be fixed properly by separating textureCoords for glyph lookups and textureCoords used for brush texture lookups.

      Attachments

        Issue Links

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

          Activity

            People

              tcooksey Tom Cooksey
              tcooksey Tom Cooksey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes