Talk:Register Fonts: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
(problem with source dirs with spaces)
Line 2: Line 2:
--[[User:Charlesb|Charlesb]] 04:54, 3 April 2006 (PDT)
--[[User:Charlesb|Charlesb]] 04:54, 3 April 2006 (PDT)
: This script was written before GetFileName was added to the package. It's probably the same function. --[[User:Kichik|kichik]] 10:41, 3 April 2006 (PDT)
: This script was written before GetFileName was added to the package. It's probably the same function. --[[User:Kichik|kichik]] 10:41, 3 April 2006 (PDT)
== problem with source dirs with spaces ==
I have my fonts in a folder that includes spaces in the name.  This produces errors in the fontregadv.nsh (and fontreg.nsh) until I changed (in both the installTTF and installFON macros):
; Get the Font's File name
  ${GetFileName} ${FontFile} $0
to
; Get the Font's File name
  ${GetFileName} "${FontFile}" $0

Revision as of 07:51, 26 August 2006

Is there a reason why the script includes a version of GetFileName, which is included in the NSIS distribution? Is it a modified version? --Charlesb 04:54, 3 April 2006 (PDT)

This script was written before GetFileName was added to the package. It's probably the same function. --kichik 10:41, 3 April 2006 (PDT)

problem with source dirs with spaces

I have my fonts in a folder that includes spaces in the name. This produces errors in the fontregadv.nsh (and fontreg.nsh) until I changed (in both the installTTF and installFON macros):

Get the Font's File name
 ${GetFileName} ${FontFile} $0

to

Get the Font's File name
 ${GetFileName} "${FontFile}" $0