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

Fix text rendering with texture brushes properly in the GL2 engine

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes