Qt Installer Framework - Install fonts into C:\Windows\Fonts
-
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.htmlI haven't found a way to do it through the application itself, but that also doesn't seem right.
-
@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.
-
Hi,
Why not use QFontDatabase and load them from within your application installation location ?
-
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?
-
@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.