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. If a PC does not have a certain font in its db, would a GUI using this font work well?
Forum Updated to NodeBB v4.3 + New Features

If a PC does not have a certain font in its db, would a GUI using this font work well?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 358 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.
  • M Offline
    M Offline
    mhmdkanj
    wrote on 3 Sept 2020, 11:32 last edited by
    #1

    I'm developing a GUI and inside it [for the text browser] I'm using a specific font (e.g. Consolas). Since Consolas is on my development platform then I can see it on QT Creator. However when I deploy the GUI on another PC, would the user properly see this font if they don't have it installed on their machine?

    J 1 Reply Last reply 3 Sept 2020, 11:42
    0
    • M mhmdkanj
      3 Sept 2020, 11:32

      I'm developing a GUI and inside it [for the text browser] I'm using a specific font (e.g. Consolas). Since Consolas is on my development platform then I can see it on QT Creator. However when I deploy the GUI on another PC, would the user properly see this font if they don't have it installed on their machine?

      J Offline
      J Offline
      JonB
      wrote on 3 Sept 2020, 11:42 last edited by
      #2

      @mhmdkanj
      Well, if they don't have the explicit font you name on their machine, an alternative will be chosen automatically/silently. So it won't look exactly the same. Unless they have the font installed, or you supply the required font with your distribution, and do whatever is necessary during installation.

      M 1 Reply Last reply 7 Sept 2020, 11:17
      5
      • J JonB
        3 Sept 2020, 11:42

        @mhmdkanj
        Well, if they don't have the explicit font you name on their machine, an alternative will be chosen automatically/silently. So it won't look exactly the same. Unless they have the font installed, or you supply the required font with your distribution, and do whatever is necessary during installation.

        M Offline
        M Offline
        mhmdkanj
        wrote on 7 Sept 2020, 11:17 last edited by
        #3

        @JonB Many thanks for your reply. Is there a clean/official way to "supply the required font" or "do whatever is necessary during installation" with QT?

        J 1 Reply Last reply 7 Sept 2020, 11:27
        0
        • M mhmdkanj
          7 Sept 2020, 11:17

          @JonB Many thanks for your reply. Is there a clean/official way to "supply the required font" or "do whatever is necessary during installation" with QT?

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 7 Sept 2020, 11:27 last edited by
          #4

          @mhmdkanj font's usually come in ttf files (or similar) Simply copy such a file into the install directory, or pack it into the binary with the Ressource system. And in the main, you can add the font via QFontDatabade::addApplicationFont


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          4

          1/4

          3 Sept 2020, 11:32

          • Login

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