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. qpfs fonts are shown as squares only in Qml
Forum Updated to NodeBB v4.3 + New Features

qpfs fonts are shown as squares only in Qml

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 843 Views 2 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.
  • T Offline
    T Offline
    th.thielemann
    wrote on last edited by
    #1

    My goal is to reduce load performance of a Qml application on an embedded device. One point is the used font (1.3 MByte on SD card). The QtCreator Profiler says the first Qml Text takes long than any following Qml Text element. Thus I assume the reason is the font loading. Any comments?

    I build makeqpf tool form Qt5.02. (it is not build-able in current releases) and created some *.qpf2 font files from my TrueType font files.

    But in any case is use the *.qpf2 fonts I see squares only.

    Any hints?

    1 Reply Last reply
    0
    • I Offline
      I Offline
      iridefix
      wrote on last edited by
      #2

      When I was confronted with black squares instead of text, this line

      renderType: Text.NativeRendering

      fixed it.

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

        Hi,

        You can clone the qttools repository, the current 5.4 branch has the fix to build makeqpf

        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