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

Text rendered through a ShaderEffectSource gets wrong rendering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.5.0 Alpha
    • None

      Given a Text element rendering with a small font size, if we render it thorugh a (much) bigger ShaderEffectSource + a ShaderEffect we'll see smoothed edges instead of crips edges. This happens also if the textureSize is set to the final size of the ShaderEffect.

      import QtQuick 2.4
      
      Item {
      
          width: 480
          height: 640
      
          Rectangle {
              gradient: Gradient {
                  GradientStop { position: 0; color: "steelblue" }
                  GradientStop { position: 1; color: "black " }
              }
          }
      
          Text {
              id: text
              width: 20
              height: 20
              text: "Q"
              layer.enabled: true
              layer.textureSize: Qt.size(400, 400);
          }
      
          ShaderEffect {
              width: 400
              height: 400
              property var source: text;
          }
      
      }
      

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

            esabraha Eskil Abrahamsen Blomfeldt
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes