|
|
#1 |
|
Junior Member
Join Date: Aug 2011
Posts: 4
|
Installing a Font - Help!!
Hi All,
I'm really stuck on this one. I have a script that installs two fonts, (Andale Mono and arialUnicode) on XP using InstallTTF from FontRegAdv.nsh. The odd behavior I get is when adnalemo is not installed on the machine the installer throws up a dialog saying "Invalid File Handle 32" and the font is not installed. However if I remove the arialUnicode font and run the installer it does install that font no problem! I'm puzzled as to why it has a problem with the Andale Mono font! Odd. I'm new to all this as I'm sure you'll realise from my problem!! here's the code: strCpy $FONT_DIR $FONTS !insertmacro InstallTTF "$INSTDIR\Fonts\andalemo.ttf" $FONTS !insertmacro InstallTTF '$INSTDIR\Fonts\arialUnicode.ttf' $FONTS SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000 The font files are in the same folder so I don't understand what's going wrong! Any help would be greatly appreciated! Thanks. |
|
|
|
|
|||||||
| Tags |
| font |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|