Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th January 2003, 18:34   #1
curtisbeef
Junior Member
 
Join Date: Jan 2003
Posts: 8
Register Fonts without restarting?

I read a older post and i cant get anything to work can someone Help me out ....

someone posted a Fonts.Dll file that was supposed to do it here is some of my code
PHP Code:
  GetTempFileName $R0 
  File 
/oname=$R0 "C:\windows\system32\fonts.dll"
  
Push "CFBSFONT.TTF" 
  
CallInstDLL $R0 registerFont 
curtisbeef is offline   Reply With Quote
Old 16th January 2003, 20:19   #2
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
If you NSIS 2.0b or the latest CVS, you can put the fonts.dll-file in the 'Plugins'-directory of your NSIS installation. In the script, extract the font in a temproary directory using File and GetTempFileName. Then you can use the following code instead of your own code (change CFBSFONT.TTF to a suitable path):
PHP Code:
fonts::registerFont "CFBSFONT.TTF" 
But read this thread carefully. You also have to change or add some registry values and stuff.

If there are still any questions, post your complete script as an attachment and someone will help you if possible.

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 16th January 2003, 20:31   #3
curtisbeef
Junior Member
 
Join Date: Jan 2003
Posts: 8
Im a total noob to NSIS just so you know...

ok i added the fonts::registerFont "CFBSFONT.TTF"

but it still doesnt work
i dont know what to do about the reg strings could you give me some help... it has to be able to work with all windows os's
Attached Files
File Type: txt boot setup.nsi.txt (3.6 KB, 84 views)
curtisbeef is offline   Reply With Quote
Old 17th January 2003, 10:11   #4
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
I have changed your script, but the file is currently at another computer. I will post it in the afternoon in this thread. B.t.w. I couldn't test it, since I don't have fonts.dll installed and i don't have the files you have (including the font).

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 17th January 2003, 10:55   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
The way you are installing the VB files in this script is not the best way. Please see: http://nsis.sourceforge.net/archive/....php?pageid=47

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