|
|
#1 | |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
Looking for a Font installation example
Could any one give me an example of installing a font using the Vytautas scripts FontName.nsh & FontReg.nsh ?
I'm trying this code: Quote:
Thank you very much |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Mar 2004
Location: The Netherlands
Posts: 43
|
Did you check these already?
http://nsis.sourceforge.net/archive/...php?pageid=392 http://nsis.sourceforge.net/archive/...php?pageid=400 @p0ll0 |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
Yes, thank you. I did checked both pages. In fact I took the macros from there. But I am having problems using them and I do not know how to continue.
My problem is that in compilation, I get the following messages: Quote:
Fontname::Name I supose it is a call to the Name function in FontName.dll plugin but I do not know either how to continue nor what to do. Thas's why I was trying to find a full example, to try to find differences from my code. Thank you anyway. |
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Put the FontName plug-in in the Plugins directory.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
Thank you very much. But I already did put the file FontName.dll in the plugins directory. Should I put any thing else there or do something to register this dll?
Also there are two includes in my source file: !include "FontReg.nsh" !include "FontName.nsh" Both files are in the NSIS\include directory Thank you. |
|
|
|
|
|
#6 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
You can also use the code in this topic (standard System plug-in):
http://forums.winamp.com/showthread....=register+font |
|
|
|
|
|
#7 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If "FontName::Name" is an invalid command you've put it in the wrong place or put the wrong file. Put FontName.dll in the Plugins directory where NSISdl.dll, System.dll and BgImage.dll are. Make sure it is named FontName.dll.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
Thank you very much for your answers.
To Joost Verburg: I tested the code taken from an example found in the forum. The example was named "main menu.nsi" (Sorry, I can't find the page from where I downloaded it). It works OK. But I was looking for a more modular and robust solution that could be maintained in the future as part of the NSIS core. That's why I was trying to use the Vytautas macros. Thank you anyway for your suggestion. And thank you very much for MUI and all your good work. To kichik: The dll is in the right place. I will download a new version of the dll and re-check everything. I will tell you later. Thank you very much for your help. |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
I downloaded again the FontName plugin (version 0.6) and re-checked. The same problem. By the way, I sent to Vitautas the spanish translation to be incorporated to the macro. Here it is just in case any one needs it:
code: |
|
|
|
|
|
#10 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Is the FontName plug-in listed in the compiler output (at the beginning)?
You can also put the other code that uses the System plug-in in a macro. Last edited by Joost Verburg; 7th March 2004 at 12:04. |
|
|
|
|
|
#11 | |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
Yes, but they appears as follows:
Quote:
|
|
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Mar 2004
Location: Spain
Posts: 8
|
The cause of the problem is found. The FonName-0.6.exe installer installs the "FontName.dll" as "FontName.DLL" (upper case extention). Somehow the extention ".DLL" is not interpreted correctly and it is assumed the name "FontName.DLL.dll". Changing the extention to lower case ".dll" fixes "my" problem (not the deeper problem).
Thank you very very much for all your help. I appreciate it very much. I will send a message to Vytatutas to keep him informed about all this. Thank you everybody again. Kind regards. |
|
|
|
|
|
#13 |
|
Major Dude
|
Thanks cecilio for spotting that error. I will upload the fix installer later today, don't have the files on this PC.
Also I will include the Spanish tyranslation you provided in the PM.Although I think it would be a good idea to fix this plugin detection error in NSIS code as well. Vytautas |
|
|
|
|
|
#14 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Fixed in latest CVS version.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|