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 Installer Framework - Install fonts into C:\Windows\Fonts
Forum Updated to NodeBB v4.3 + New Features

Qt Installer Framework - Install fonts into C:\Windows\Fonts

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 614 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.
  • S Offline
    S Offline
    Stroopwafel
    wrote on last edited by
    #1

    So my application builds a PDF document which uses custom fonts.
    However, users obviously won't have these fonts installed, so they won't be able to use them until they are listed in C:\Windows\Fonts.
    Is it possible to make either the installer or the app write the fonts into C:\Windows\Fonts?

    I've tried both "Execute" and "Copy", but they don't seem to work:
    https://doc.qt.io/qtinstallerframework/operations.html

    I haven't found a way to do it through the application itself, but that also doesn't seem right.

    1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      Why not use QFontDatabase and load them from within your application installation location ?

      S Offline
      S Offline
      Stroopwafel
      wrote on last edited by
      #4

      @SGaist Reading your comment I did some digging:

      https://tex.stackexchange.com/questions/63801/use-font-in-xetex-not-installed-on-my-system

      So this might just work. It's a bit late now. But I'll give it a shot tomorrow and report back.

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

        Hi,

        Why not use QFontDatabase and load them from within your application installation location ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        S 2 Replies Last reply
        1
        • S Offline
          S Offline
          Stroopwafel
          wrote on last edited by
          #3

          Hey SGaist. That's a fair point I suppose. I'm using the GUI to let other people compile a latex PDF based on values in a downloaded CSV file.
          In order for latex to compile it needs the custom fonts. As far as I'm aware using custom fonts in a latex compile they have to be installed. Unless of course latex can simply be pointed to fonts in a folder somewhere. In that case I could just add the fonts to the resources, copy them to the appdata folder and point latex to the font files.

          Do you think that's possible?

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Why not use QFontDatabase and load them from within your application installation location ?

            S Offline
            S Offline
            Stroopwafel
            wrote on last edited by
            #4

            @SGaist Reading your comment I did some digging:

            https://tex.stackexchange.com/questions/63801/use-font-in-xetex-not-installed-on-my-system

            So this might just work. It's a bit late now. But I'll give it a shot tomorrow and report back.

            1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              Why not use QFontDatabase and load them from within your application installation location ?

              S Offline
              S Offline
              Stroopwafel
              wrote on last edited by
              #5

              @SGaist Local fonts did the trick after all, so there is no longer a need to install fonts on the client machine.

              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