theblase
12th June 2009 14:35 UTC
Font installation problem in NSI script
Hi,
I have one TTF font in the \fajlok\font\DTCART.TTF path. I am using the FontName plug-in (http://nsis.sourceforge.net/FontName_plug-in).
My included files in the script:
# Included files
!include Sections.nsh
!include MUI.nsh
!include WinVer.nsh
!include FontName.nsh
;!include FontReg.nsh
!include FontRegAdv.nsh
.
.
.
SetOutPath $FONTS
SetOverwrite on
File /r fajlok\font\DTCART.TTF
StrCpy $FONT_DIR $FONTS
!insertmacro InstallTTFFont 'DTCART.TTF'
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000
.
.
.
I have attached the my problem. What is the solution???
kichik
12th June 2009 15:10 UTC
It can't find DTCART.TTF. Make sure you specify the right path.
theblase
12th June 2009 15:23 UTC
Re:
You're a genius! I have knew this already! But how to specify the correct path?
This is also wrong:
SetOutPath $FONTS
SetOverwrite on
File /r fajlok\font\DTCART.TTF
StrCpy $FONT_DIR $FONTS
!insertmacro InstallTTFFont $FONTS\'DTCART.TTF'
???
kichik
12th June 2009 16:02 UTC
that what my moma keep saying me. she proud.
theblase
12th June 2009 23:55 UTC
Re:
Could you tell it for me in a more detailed way? How do I need to use the path formula in the script?
kichik
13th June 2009 10:19 UTC
!insertmacro InstallTTFFont fajlok\font\DTCART.TTF
And /r in File means recursive. You don't need it. It'll look for that font all over fajlok\font.