'Change the font name of all dialogs in Inno Setup

Based on the answer in this link, Inno Setup how to change the font color or style of label on TInputFileWizardPage

This is the code to change the font style,

PageFileSelect.PromptLabels[0].Font.Color := clRed;
PageFileSelect.PromptLabels[0].Font.Style := [fsBold, fsItalic];

But how to change the font name of the entire installer dialogs and controls in one go?



Solution 1:[1]

The answer is provided in this link:
Change the entire font name of all dialogs (part 2)

Use DefaultDialogFontName directive:

[Setup]
DefaultDialogFontName=<your font name here e.g. Showcard Gothic>

Solution 2:[2]

Both comments above are correct.

It is quite complicated to to this in vanilla Inno, but there are several 3rd party plugins e.g. VCL Styles or Graphical Installer (check details here) which provide enriched API for this purpose (to make everything easier).

There is a lot of official examples what to do, but if you have any specific question feel free to ask here on SO (I am Inno contributor and developer of Graphical Installer).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Martin Prikryl
Solution 2 Slappy