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. FreeType police on arm

FreeType police on arm

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 4.0k 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
    ngrosjean
    wrote on last edited by
    #1

    Hello,

    I'm working on an arm platform with library Qt 4.6.3.
    The final custumer request that the usage of Arial font.

    My problem is : I can't generate or use arial font of any type.

    If I compile my Qt library with ttf support (-qt-freetype option or -system-freetype) the software crash as soon as I try to load/use ttf font.

    If I compile my Qt library with no ttf support, the software don't crash, but of course I could not load my font.

    I also try to compile the makeqpf tool (there is few documentation about this tool by the way), I could only compile it for arm platform (perhaps it's normal) but I only be able to generate qpf2 file with huge font (size 100 px or more!). If I try to generate normal font, say a size of 20, the makeqpf software never end and nothing is generated.

    Note 1 : I found these closed bug: http://bugreports.qt.nokia.com/browse/QTBUG-13441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs

    Note 2 : I use the libfreetype.so.6.3.15

    My question is : what should I do to use the Arial font?
    -> Generate qpf2 on another platform and use it on arm?
    -> Generate the old fashion qpf (not qpf2) file?
    -> Is there any patch for the freetype usage?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      L.MCH
      wrote on last edited by
      #2

      have you already tried using the method suggested by "吴琼":http://bugreports.qt.nokia.com/browse/QTBUG-13441?focusedCommentId=133766&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133766 ?

      I.e using "-fn somefont.ttf" in the application's command line parameters ?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        ngrosjean
        wrote on last edited by
        #3

        Yes, I try to launch the application with the fn option, with the same effect that calling the font in the code or in a style sheet file : just crashing the application.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          L.MCH
          wrote on last edited by
          #4

          Uhm! So it must be something else, maybe something related to font management like "this":http://bugreports.qt.nokia.com/browse/QTBUG-13395 ?

          The bug description says "QLineEdit dies in its constructor" but the cause is an alignment error in the Harfbuzz library that happens with specific fonts.
          In the related comments look at what Oleksandr Tymoshenko says "here":http://bugreports.qt.nokia.com/browse/QTBUG-13395?focusedCommentId=132139&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-132139.
          It looks like the you can fix it "this way":http://bugreports.qt.nokia.com/browse/QTBUG-13395?focusedCommentId=133377&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133377 or else you can try switching to Qt 4.7.2 where they says the bug is fixed.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            ngrosjean
            wrote on last edited by
            #5

            Thanks for your reply. I will try to fix it next week!

            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