Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Font rendering bug (SOLVED)
Forum Update on Monday, May 27th 2025

Font rendering bug (SOLVED)

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 3 Posters 3.2k 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.
  • N Offline
    N Offline
    nikohal
    wrote on 2 Aug 2014, 12:50 last edited by
    #1

    I have some font rendering bug with Qt 5.3.1 on Android device. All texts are messy when Qt Quick Controls are used (Button, Label etc.).
    !http://qt.hallikainen.cc/WP_20140801_005.jpg(picture)!

    Any ideas how to fix?

    Regards, Niko H.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      coursar
      wrote on 9 Aug 2014, 22:22 last edited by
      #2

      What device you're using? It's may be known bug on some gpu with qml text element. "View the link...":https://bugreports.qt-project.org/browse/QTBUG-33951. I know bug exists on huawei honor 3, but didn't have device for testing and fix it.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nikohal
        wrote on 10 Aug 2014, 04:53 last edited by
        #3

        I use HTC Desiere HD

        Regards, Niko

        1 Reply Last reply
        0
        • C Offline
          C Offline
          coursar
          wrote on 10 Aug 2014, 05:09 last edited by
          #4

          Detect your gpu identification string as shown in bug report and recompile qt.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nikohal
            wrote on 10 Aug 2014, 18:39 last edited by
            #5

            How I can find GPU identification string?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              coursar
              wrote on 10 Aug 2014, 19:23 last edited by
              #6

              In
              src/plugins/platforms/android/qandroidplatformopenglcontext.cpp
              add QDebug header.

              Then find function bool QAndroidPlatformOpenGLContext::needsFBOReadBackWorkaroud()
              and just qDebug() << rendererString in appropriate place. Recompile Qt. When you run your app you can see it from app output in qt creator or in android monitor.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                coursar
                wrote on 12 Aug 2014, 10:54 last edited by
                #7

                If it helps you, please share rendererString

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nikohal
                  wrote on 12 Aug 2014, 11:38 last edited by
                  #8

                  Yes, I'll send rendererString but now I have problem with compiling Qt.
                  I get error this error.
                  !http://qt.hallikainen.cc/Sieppaa2.png!
                  I have installed android apis 10, 11, 16.

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nikohal
                    wrote on 12 Aug 2014, 11:57 last edited by
                    #9

                    Path is:
                    export JAVA_HOME=/usr/lib/jvm/java-8-oracle/bin/

                    export ANDROID_SDK_ROOT=/home/nikohal/qt5/qt5/adt-bundle-linux-x86-20140702/sdk

                    export ANDROID_API_VERSION=android-10

                    Configure:

                    ./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/nikohal/qt5/qt5/android-ndk-r10 -android-sdk /home/nikohal/qt5/qt5/adb-bundle-linux-x68-20140702/sdk -android-ndk-host linux-x86 -android-toolchain-version 4.9 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -no-dbus

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      p3c0
                      Moderators
                      wrote on 12 Aug 2014, 12:12 last edited by
                      #10

                      Hi,

                      The View.AccessibilityDelegate was introduced in Android Version 14.
                      See "here":http://developer.android.com/reference/android/view/View.AccessibilityDelegate.html. So as per this link you are supposed to compile it with Android SDK version >= 14.
                      Perosnally i tried it with Android-14 but i still got the same error. Later when i tried it with Android-19 it worked. So check with what Android SDK version works for you but definitely not with Android-10.

                      157

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        nikohal
                        wrote on 13 Aug 2014, 06:54 last edited by
                        #11

                        D/Qt (10857): qandroidplatformopenglcontext.cpp:80 (static bool QAndroidPlatformOpenGLContext::needsFBOReadBackWorkaroud()): Adreno 205

                        1 Reply Last reply
                        0
                        • N Offline
                          N Offline
                          nikohal
                          wrote on 13 Aug 2014, 07:57 last edited by
                          #12

                          Problem solved, I add Adreno 205 to source, and it works :)
                          !http://qt.hallikainen.cc/DSC_9781.JPG!
                          Thankyou :)

                          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