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

Rendering dynamic text with big font fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • QSR 2.1.0 RC 2
    • QSR 2.0, QSR 2.1.0 RC 1
    • Runtime
    • None
    • b159d6bfd (dev), 47f660fd3 (tqtc/lts-6.5)

      In the code that displays the simple number "20" as shown below, a display error occurs depending on the situation.
      Using the Orbitron font
      runtimeEditable: true
      font.pixelSize is 153 or lower: OK
      font.pixelSize is 154 or higher: NOK

      SafeText {
                id: textItem
                objectName: "textItem"
                height: 200
                width: 600
                color: "black"
                verticalAlignment: Text.AlignVCenter
                horizontalAlignment: Text.AlignHCenter
                font.pixelSize: 154
                font.family: "Orbitron"
                fillColor: "white"
                text: "20"
                runtimeEditable: true
      }
      

      Only the first letter is rendered if the size is bigger than 153.

      The root cause is that we have reserved signed int8 for the advance variable and the value does not match to the variable.

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

            qtsaferendererteam Qt Safe Renderer Team
            teemu.holappa Teemu Holappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes