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?
QtWS25 Last Chance

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 345 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.
  • M Offline
    M Offline
    mhmdkanj
    wrote on 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?

    JonBJ 1 Reply Last reply
    0
    • M mhmdkanj

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on 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
      5
      • JonBJ JonB

        @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 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.HilkJ 1 Reply Last reply
        0
        • M mhmdkanj

          @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.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on 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

          • Login

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