how to install fonts
Hi!
How do I install fonts with NSIS?
Is there a built-in function or I have to use
a special plugin?
I did not find anything on this in the docs.
Archive: how to install fonts
how to install fonts
Hi!
How do I install fonts with NSIS?
Is there a built-in function or I have to use
a special plugin?
I did not find anything on this in the docs.
I think you just need to extract the fonts to $WINDIR\fonts then do a reboot.
-Stu
Originally posted by Afrow UKThat's what I did, and to avoid the reboot I would exec $windir\fonts,
I think you just need to extract the fonts to $WINDIR\fonts then do a reboot.
-Stu
Take a look at this thread: http://forums.winamp.com/showthread....341#post976341
That topic brings back memories!
-Stu :D
Originally posted by Afrow UKThanks for pointing me in the right direction.
That topic brings back memories!
-Stu :D
!include WinMessages.nsh
System::Call "GDI32::AddFontResourceA(t) i ('IPAFONT.TTF') .s"
Pop $0
# $0 is zero if the function failed
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0
AddFontResource doesn't support wildcards. You can use FindFirst, FindNext and FindClose to find all of the files matching the criteria and call AddFontResource on each one of the results.