| View previous topic :: View next topic |
| Author |
Message |
happytodd
Joined: 12 Nov 2007 Posts: 142 Location: South Australia
|
Posted: Fri Dec 11, 2009 2:17 am Post subject: Script for automatically installing fonts |
|
|
Dear Users/Staff,
I have been making a program, and I want it to have a special font which most people don't have. I was just wondering if there was such a script to automatically install fonts to the C:\WINDOWS\Fonts directory. So when people download my program, they'll download the font which is in the zip file with my program, then it will automatically install to the directory once the application is open.
Not asking for actual script, just asking to be pointed in the right direction.
Thankyou,
Happytodd =] _________________
 |
|
| Back to top |
|
 |
entropic
Joined: 21 Dec 2008 Posts: 181
|
|
| Back to top |
|
 |
happytodd
Joined: 12 Nov 2007 Posts: 142 Location: South Australia
|
Posted: Fri Dec 11, 2009 4:36 am Post subject: |
|
|
Thankyou,
I tried using the AHK one but no luck so far...
I downloaded a font folder that contains a "Font file" which is called VISITOR and I also got two "TrueType Font files" called visitor1, and visitor2. So I tried doing this:
| Code: | font = visitor1.ttf ; font in %A_WorkingDir%
DllCall("GDI32.DLL\AddFontResource", str, font)
; msgbox, %errorlevel%
; send WM_FONTCHANGE to all windows:
SendMessage, 0x1D,,,, ahk_id 0xFFFF
sleep 10000 |
But it didn't work. So I tried applying it to an application I'm working on which I want this to work with, but still no luck. Can anyone please help me with getting this to work. Its really puzzling me >.<
Thankyou =] _________________
 |
|
| Back to top |
|
 |
happytodd
Joined: 12 Nov 2007 Posts: 142 Location: South Australia
|
Posted: Sun Dec 13, 2009 3:16 am Post subject: |
|
|
Bump  _________________
 |
|
| Back to top |
|
 |
happytodd
Joined: 12 Nov 2007 Posts: 142 Location: South Australia
|
Posted: Tue Dec 15, 2009 5:00 am Post subject: |
|
|
Bump
I hope someone can help me out. Or would it be easier to just Filecopy?
I read somewhere that its hard to Filecopy a font because it'll duplicate the font or something. How would I go on about copying it instead? I want a way I can install a font without restarting my pc. I hope someone can help please =[ _________________
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
|
| Back to top |
|
 |
|