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. Font rendering bug on some Android devices!?

Font rendering bug on some Android devices!?

Scheduled Pinned Locked Moved QML and Qt Quick
16 Posts 7 Posters 11.8k 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.
  • X Offline
    X Offline
    Xander84
    wrote on last edited by p3c0
    #6

    Hi, yeah I know the worst is we can't reproduce the bug ourselves and test possible fixes for it. :/

    Another user send me a possible workaround, I have set the QML environment variable QML_USE_GLYPHCACHE_WORKAROUND to 1, that should work for some devices, but again I can't test it myself so it's hard to say.

    qputenv("QML_USE_GLYPHCACHE_WORKAROUND", QByteArray("1"));
    

    that workaround was described here: https://bugreports.qt-project.org/browse/QTBUG-34984

    I think most rendering bugs are due to corrupt device drivers for OpenGL, but there is nothing we can do about it I guess.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      broulik
      wrote on last edited by
      #7

      I just got feedback from a user that Qt 5.3 fixes the issue for him on his Sony Xperia T, I hope it will work on Huawei and the others too. Stay tuned :)

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xander84
        wrote on last edited by
        #8

        Great, I am waiting fort the stable release of Qt 5.3, but if that fixes the font problems that would be nice. :)

        1 Reply Last reply
        0
        • O Offline
          O Offline
          onek24
          wrote on last edited by
          #9

          Greetings,

          i have a font rendering bug under windows which doesn't exist on android-devices... strange QML. :)

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jiangcaiyang
            wrote on last edited by
            #10

            I usually use native font "Droid Sans" when building Android application. It is so far so good.

            1 Reply Last reply
            0
            • X Offline
              X Offline
              Xander84
              wrote on last edited by
              #11

              For my app I did not specify any font explicitly, so it should use the default device font I think ( Roboto on Android?). It looked good on my devices so I thought it would be best not to set any font family at all.
              [quote author="jiangcaiyang" date="1399629141"]I usually use native font "Droid Sans" when building Android application. It is so far so good.[/quote]

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mehrdad
                wrote on last edited by
                #12

                Hi
                how can i set the QML environment variable QML_USE_GLYPHCACHE_WORKAROUND to 1?

                p3c0P 1 Reply Last reply
                0
                • M mehrdad

                  Hi
                  how can i set the QML environment variable QML_USE_GLYPHCACHE_WORKAROUND to 1?

                  p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #13

                  @mehrdad Using qputenv. Call this before loading the QML.

                  157

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mehrdad
                    wrote on last edited by
                    #14

                    thanks, it work for huawei p6 but not for textfiled element...

                    p3c0P 1 Reply Last reply
                    0
                    • M mehrdad

                      thanks, it work for huawei p6 but not for textfiled element...

                      p3c0P Offline
                      p3c0P Offline
                      p3c0
                      Moderators
                      wrote on last edited by
                      #15

                      @mehrdad Well the bug report https://bugreports.qt-project.org/browse/QTBUG-34984 (posted by @Xander84 here) says it is fixed. Which Qt version are you using ?

                      157

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mehrdad
                        wrote on last edited by
                        #16

                        5.4.1
                        i use textEdit for create my own textField and it work!
                        thanks...

                        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