How can I get the FontDir Path?
Must I use $WINDIR\Fonts ?
-- Peter
How to get FontDir?
4 posts
Hi Peter,
yes, I think the fonts system folder is located at $WINDIR\Fonts on all versions of Windows.
To be safe, you could check it at runtime of your app by using the shell function
Regards,
~ Flo
yes, I think the fonts system folder is located at $WINDIR\Fonts on all versions of Windows.
To be safe, you could check it at runtime of your app by using the shell function
with the param CSIDL_FONTS.SHGetSpecialFolderLocation
Regards,
~ Flo
Find Font's Folder
If you wanna find the Font-Folder use this:
InstallDirRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Fonts"
Put this in one line with (!!!) the quotes.
If you wanna find the Font-Folder use this:
InstallDirRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Fonts"
Put this in one line with (!!!) the quotes.
Re: Find Font's Folder
Err, if you want to just drop a file off in the fonts dir, you could do:
Originally posted by FreeNsisTweaker
If you wanna find the Font-Folder use this:
InstallDirRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Fonts"
Put this in one line with (!!!) the quotes.
Err, if you want to just drop a file off in the fonts dir, you could do:
-Justin
ReadRegStr $OUTDIR HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Fonts"
StrCmp $OUTDIR "" NoFonts
File myfont.ttf
NoFonts: