Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 12th June 2009, 13:35   #1
theblase
Junior Member
 
Join Date: Jul 2006
Location: Hungary
Posts: 31
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???
Attached Images
File Type: jpg 2009-06-12_153425.jpg (85.1 KB, 106 views)
theblase is offline   Reply With Quote
Old 12th June 2009, 14:10   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
It can't find DTCART.TTF. Make sure you specify the right path.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 12th June 2009, 14:23   #3
theblase
Junior Member
 
Join Date: Jul 2006
Location: Hungary
Posts: 31
Talking 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'

???
theblase is offline   Reply With Quote
Old 12th June 2009, 15:02   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
that what my moma keep saying me. she proud.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 12th June 2009, 22:55   #5
theblase
Junior Member
 
Join Date: Jul 2006
Location: Hungary
Posts: 31
Re:

Could you tell it for me in a more detailed way? How do I need to use the path formula in the script?
theblase is offline   Reply With Quote
Old 13th June 2009, 09:19   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
!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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump