Custom fonts in a GUI app

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
apra0904
Posts: 1
Joined: Thu Jun 25, 2020 9:02 pm

Custom fonts in a GUI app

Post by apra0904 »

Hi,

what is the correct process to incorporate a custom font in a GUI , exe package. So that when the end user runs the exe the gui shows the custom font and not revert back to some standard microsoft font. My thoughts on this was to include the custom font as a file in the exe/MSI package and have a few lines of code to install the font on the end users PC during the execution of the exe or msi package. Not sure if this would be the ideal way to do this, or if Powershell Studio has a better way to do this.

Thank you.

Locked