Changes

Jump to: navigation, search

Fonts

926 bytes added, 14:16, 25 June 2010
Some Typo and Example for PS Type 1 Fonts
== basic Basic info ==
To install new fonts on a Windows machine, you have to do two things:
* add a registry entry.
== Example Batch file ==
 == example batch file == An example .bat file will would look like this:
<source lang="dos">
== example registry Example Registry file ==
An example registry file will would look like this:
<source lang="reg">
Windows Registry Editor Version 5.00
== example Example XML install file for WPKG ==
<source lang="xml">
</source>
== Example Inno Setup Script ==
Because I had problems with the registry setting I found another way to install fonts by writing an installer. [[Inno Setup]] makes this easy and a script like the following will package a number of fonts into a pseudo-application.
<upgrade cmd='%SOFTWARE%\font-setup.exe /sp- /silent /norestart' />
</package>
</source>
 
== Example Inno Setup Script PS Type 1 Fonts==
I tested this with success on Windows XP Machines with PS Type 1 Fonts. Copy the font and add the registry entry in the right section. After a reboot the font is fully installed. Adopt the silent install script for WPKG from above.
 
<source lang=inno>
[Setup]
AppName=Font Installer
AppVerName=Font Installer 1.0
CreateAppDir=false
DisableProgramGroupPage=true
ShowLanguageDialog=no
 
[Files]
; FontInstall does not work with my SP3
Source: "BENSCNBL.PFB"; DestDir: "{fonts}"; Flags: onlyifdoesntexist
Source: "BENSCNBL.pfm"; DestDir: "{fonts}"; Flags: onlyifdoesntexist
 
[Registry]
; Create Registry entrys for the fonts
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Type 1 Installer\Type 1 Fonts"; ValueType: multisz; ValueName: "BentonSansCond Black"; ValueData: "T{break}BENSCNBL.pfm{break}BENSCNBL.PFB"; Flags: uninsdeletevalue
</source>
[[category:Silent Installers]]
[[Category: Changing Windows settings]]
Anonymous user

Navigation menu