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. How Qt implement ttf support
Forum Updated to NodeBB v4.3 + New Features

How Qt implement ttf support

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.2k 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.
  • D Offline
    D Offline
    davidliu
    wrote on 22 Aug 2012, 06:13 last edited by
    #1

    I know this might be silly question but it has confused me for a few days. I have compiled Qt-emb 4.8.2 on an ARM9 board with an LCD display and wrote a qws application. Everything is running smoothly and I can use write qml file to load a picture and show a text string. Later I removed all the other fonts file (qpf, pfa, vera ttf, etc.) expect dejavu ttf. Of course, it's still working. Then I realized I did NOT have any libfreetype.so or libttf.so loaded on that board and I did NOT specify freetype support when compile Qt libraries.

    Based on Qt docs, "Qt for Embedded Linux uses the FreeType 2 font engine to produce font output. The formats supported depends on the locally installed version of the FreeType library." So my question is, how does Qt display those text strings if there is no libfreetype? Is it built into somethere in Qt/qws? If true, is there any difference if I install libfreetype?

    Thanks in advance.
    David

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kchandr7
      wrote on 11 Sept 2012, 21:38 last edited by
      #2

      Not sure if this is the right answer. What OS are you running?
      But I believe Qt uses fonts in the /usr/lib/fonts folder for Embedded Linux. Did you remove fonts from that folder?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        davidliu
        wrote on 19 Sept 2012, 04:49 last edited by
        #3

        Thanks for the reply. I'm running Linux built by myself (busybox plus some libraries). Yes the font files are in the directory. But I'm asking where the library function support comes from.

        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