Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-1124

Dynamic safe text issues with italic if font has kerning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • QSR 1.2
    • Tooling
    • None

    Description

      It seems that italic text with safe dynamic text may cause issues in some cases.

      QML code to reveal the lurking bug. Two texts, the first is dynamic and the second is static.

      SafeText {
              id: safeText1
              objectName: "safeText1"
              x: 17
              y: 155
              width: 384
              height: 64
              color: "#ff3985"
              text: "DYNAMIC TEXT 0123456789ABCD"
              horizontalAlignment: Text.AlignHCenter
              verticalAlignment: Text.AlignVCenter
              runtimeEditable: true
              //font.strikeout: true
              //font.underline: true
              font.italic: true
              //font.bold: true
              font.family: "Tahoma"
              //font.pixelSize: 20
          }
          SafeText {
              id: safeText2
              objectName: "safeText2"
              x: 17
              y: 255
              width: 384
              height: 64
              color: "#ff3985"
              text: "DYNAMIC TEXT 0123456789ABCD"
              horizontalAlignment: Text.AlignHCenter
              verticalAlignment: Text.AlignVCenter
              //runtimeEditable: true
              //font.strikeout: true
              //font.underline: true
              font.italic: true
              //font.bold: true
              font.family: "Tahoma"
              //font.pixelSize: 20
          }
      

      Safety application renders this like in the image below. There are two issues. Letters cannibalize each others. And for some reason the dynamic text is in different position in the x-axis.

      QML Scene tool renders these properly:

      But when changing the font to courier, there is no problemo

       

      Attachments

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

        Activity

          People

            teemu.holappa Teemu Holappa
            assaarel Asmo Saarela (Inactive)
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes