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. QRawFont not recognised in qt4.8.5 cross-compiled for arm.
Forum Updated to NodeBB v4.3 + New Features

QRawFont not recognised in qt4.8.5 cross-compiled for arm.

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kpkale
    wrote on last edited by
    #1

    I have a program where I am using the QRawFont to get outlines of a TTF Font Character and display on screen using QPainterPaths.
    The program works perfectly OK when I compile using 4.8.1 on Windows OS, Ubuntu OS, Android OS. However, I am now trying to compile the program using qt4.8.5 cross-compiled for arm processor to be run on embedded linux where I get an error "error: ISO C++ forbids declaration of 'QRawFont' with no type".

    The header has #include <QRawFont> and a private variable QRawFont *mfont; This error is seen on the variable declaration.
    Moreover, when I try to type QRawFont, usually, it automatically shows the type for auto-completion. Even that is not seen. Instead, the auto-complete just shows QRAWFONT_H.

    I tried searching for this problem on google but could not find a suitable thread even stating the problem hence decided to post a new topic.

    Anyone with a solution? Thanks for reading this post.

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

      Hi,

      Are you sure your build is complete ?

      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
      • K Offline
        K Offline
        kpkale
        wrote on last edited by
        #3

        Thanks for your reply.

        If I comment the part of my program which uses the QRawFont, the program is built completely and I can run the program on the device.

        And the program as a whole runs successfully on all other OS's. I see this problem especially when cross-compiling for embedded linux on ARM processor.

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

          From a quick look at the documentation it's possible that the class is not available for Qt for Embedded Linux

          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
          • K Offline
            K Offline
            kpkale
            wrote on last edited by
            #5

            OH!! Thanks for this information, never guessed that the class might not be available itself.

            Thanks for this information.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kpkale
              wrote on last edited by
              #6

              I am at present using the pathForGlyph function of the QRawFont to get the glyph outlines.
              Could there be any other way to get the glyph outlines of a ttf font character avoiding QRawFont.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kpkale
                wrote on last edited by
                #7

                I have been trying to study the QRawFont... it is quite evident that the QRawFont uses the QAbstractFontEngine to get the glyph data using addGlyphOutlinesToPath. I tried a variety of ways to use this function but somehow i am unable to proceed ahead. The QFixedPoint that is required by the function is also not available in Qt Embedded.

                ANy way to use this...

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

                  Out of curiosity, why doesn't QFont fit the job ?

                  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
                  • K Offline
                    K Offline
                    kpkale
                    wrote on last edited by
                    #9

                    I dont know any method of getting the Glyph outline data using QFont and get it in form of a path. If you know one, it would be great if you could share it with me. Thanks.

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

                      Maybe through QAbstractFontEngine

                      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

                      • Login

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