Archive: Need help setting the License font


Need help setting the License font
I'm trying to set the License text font to Courier New. I can't seem to find the control (I tried various item_id numbers - the only one I was able to update is 1038, which is not the License text). Below is my script:


!define MUI_PAGE_CUSTOMFUNCTION_PRE ChangeFonts
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "README.txt"


function ChangeFonts
;This code gets the wrong control
;GetDlgItem $1 $HWNDPARENT 1038
;CreateFont $0 "Courier New" "8" "500"
;SendMessage $1 ${WM_SETFONT} $0 0

;This code doesn't do anything at all
FindWindow $R0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $R0 1038
CreateFont $0 "Courier New" "8" "500"
SendMessage $1 ${WM_SETFONT} $0 0
functionend

not a direct answer, but you could use a RichText file for the license