Difference between revisions of "Fonts"
From WPKG | Open Source Software Deployment and Distribution
m |
m |
||
Line 36: | Line 36: | ||
<source lang="xml"> | <source lang="xml"> | ||
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | <packages> | ||
<package id="additional-fonts" name="Additional fonts" revision="1" reboot="false" priority="950" execute="once"> | <package id="additional-fonts" name="Additional fonts" revision="1" reboot="false" priority="950" execute="once"> | ||
Line 41: | Line 43: | ||
</package> | </package> | ||
+ | </packages> | ||
+ | |||
</source> | </source> | ||
Revision as of 12:16, 14 August 2009
This is a silent installer for distributing additional fonts. Always be sure to be entitled to use the fonts you are distributing.
basic info
To install new fonts on a Windows machine, you have to do two things:
- copy the font file to
%WINDIR%\Fonts\
directory, - add a registry entry.
example batch file
An example bat file will look like this:
%COMSPEC% /c copy /Y "%SOFTWARE%\Fonts\*.TTF" "%WINDIR%\Fonts\"
regedit /s "%SOFTWARE%\Fonts\add-fonts.reg"
example registry file
An example registry file will look like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Frankfurt Gothic (TrueType)"="FRANKGON.TTF"
example XML file for WPKG
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="additional-fonts" name="Additional fonts" revision="1" reboot="false" priority="950" execute="once">
<install cmd='"%SOFTWARE%\Fonts\add-fonts.bat"' />
</package>
</packages>