Search code examples
fontsinno-setuppascalscript

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

  • 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>