Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Text Style style: Text.Outline in Arabic
QtWS25 Last Chance

Text Style style: Text.Outline in Arabic

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m.abed
    wrote on last edited by m.abed
    #1

    Hello
    I am trying to add outline effect on a text
    in english all is good, but when i add Arabic text, word looks not correct
    and it looks outline coming between letters
    here is example link https://ibb.co/kiNAMd

    any ideas how to solve it

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should share the code you are using. If possible a complete example that would allow other people to test it.

      The version of Qt as well as platform you are using would be useful.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        m.abed
        wrote on last edited by
        #3

        Hi

        I am using QT creator 4.6.2
        qt kit 5.11.1

        even it was same problem in all older versions

        and this is the simple code

        Text {
            text: qsTr("ابدا اللعب")
            style: Text.Outline
        }
        
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          On what OS ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            m.abed
            wrote on last edited by
            #5

            I tested it on iOS,Android and MacOS

            1 Reply Last reply
            0
            • GrecKoG Offline
              GrecKoG Offline
              GrecKo
              Qt Champions 2018
              wrote on last edited by
              #6

              It is not impossible that's it's a bug in the text rendering engine. I see that you have reported it and that's good :)

              As a quick workaround you could add another Text element on top of the original one to hide the outline in the characters:

              Text {
                  text: qsTr("ابدا اللعب")
                  font.pixelSize: 140
                  color: "white"
                  style: Text.Outline
                  Text {
                      text: parent.text
                      font: parent.font
                      color: parent.color
                  }
              }
              

              qml arabic text outline workaround

              M 1 Reply Last reply
              2
              • GrecKoG GrecKo

                It is not impossible that's it's a bug in the text rendering engine. I see that you have reported it and that's good :)

                As a quick workaround you could add another Text element on top of the original one to hide the outline in the characters:

                Text {
                    text: qsTr("ابدا اللعب")
                    font.pixelSize: 140
                    color: "white"
                    style: Text.Outline
                    Text {
                        text: parent.text
                        font: parent.font
                        color: parent.color
                    }
                }
                

                qml arabic text outline workaround

                M Offline
                M Offline
                m.abed
                wrote on last edited by
                #7

                @GrecKo said in Text Style style: Text.Outline in Arabic:

                Text {
                text: parent.text
                font: parent.font
                color: parent.color
                }

                Perfect! thats a great solution
                yes, i reported it, its annoying issue

                Thanks again for helping

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved