Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.11.3 on Debian Stretch (x86_64 and armhf version)
Forum Updated to NodeBB v4.3 + New Features

Qt 5.11.3 on Debian Stretch (x86_64 and armhf version)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 207 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.
  • GianlucaRenziG Offline
    GianlucaRenziG Offline
    GianlucaRenzi
    wrote on last edited by
    #1

    I am developing a Qt application using QML on PC. I have installed two TrueType fonts into two different folder and all qrc are pointing right to them. But when I launch it, it uses some of my fonts characters and some of other system (?) FontConfig fonts.
    My main goal is to run this application in a embedded board with Xorg, Qt, GPU but not all fancy fonts that came with window managers and such due to the limit in size of the storage space flash.

    So basically I wish Qt prevent using system font, so my only fonts are being used.
    Is this possible?

    How to proceed?

    Regards,
    Gianluca

    sierdzioS 1 Reply Last reply
    0
    • GianlucaRenziG GianlucaRenzi

      I am developing a Qt application using QML on PC. I have installed two TrueType fonts into two different folder and all qrc are pointing right to them. But when I launch it, it uses some of my fonts characters and some of other system (?) FontConfig fonts.
      My main goal is to run this application in a embedded board with Xorg, Qt, GPU but not all fancy fonts that came with window managers and such due to the limit in size of the storage space flash.

      So basically I wish Qt prevent using system font, so my only fonts are being used.
      Is this possible?

      How to proceed?

      Regards,
      Gianluca

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @GianlucaRenzi said in Qt 5.11.3 on Debian Stretch (x86_64 and armhf version):

      But when I launch it, it uses some of my fonts characters and some of other system (?) FontConfig fonts.

      Do you set your fonts manually everywhere? Where OS fonts are / are not used?

      So basically I wish Qt prevent using system font, so my only fonts are being used.

      If target OS won't have system fonts, Qt definitely won't use them.

      You may try calling QFont::insertSubstitute() to manually replace system font names with your own.

      (Z(:^

      1 Reply Last reply
      1

      • Login

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