Difference between revisions of "Fonts"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 26: Line 26:
 
"<font name>"="<font file name>"
 
"<font name>"="<font file name>"
 
</pre>
 
</pre>
Substitute "font name" with for example "Arial (True Type)", and "font file name" with for example "arial.ttf".
+
Substitute "font name" with for example "Arial (TrueType)", and "font file name" with for example "arial.ttf".
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 12:04, 27 March 2009

This did not work as the fonts are not registered in registry. When you have Administrator rights and open the %WINDIR%\Fonts\ directory after copying the fonts you wont notice that, as the new fonts get registered automaticely then by Windows Explorer.



This is a silent installer for distributing additional fonts. Always be sure to be entitled to use the fonts you are distributing.

Not sure how it behaves when a font is already installed on the client.

<package id="additional-fonts" name="Additional fonts" revision="1" reboot="false" priority="950" execute="once">

  <install cmd='%COMSPEC% /c copy /Y "%SOFTWARE%\Fonts\*.TTF " "%WINDIR%\Fonts\" ' />

</package>

A very simple Method to install Fonts is to create a minimalistic Setup-Package with INNO-Setup, where you can add all the Font's you want to install. The silent Setup installs and registers the Fontfiles during Installation

Or you can use a registry file like this

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"<font name>"="<font file name>"

Substitute "font name" with for example "Arial (TrueType)", and "font file name" with for example "arial.ttf".