Font files contain typefaces for screen display and printing. Over the years, new Windows versions have added support for new font technologies. This has two implications as far as font installation is concerned:
As to the first point: Tarma Installer knows how to register and unregister most font technologies supported by Windows. All necessary functionality is built in; no external helper programs are required. All that you need to do is add the font files to your Tarma ExpertInstall project. Tarma ExpertInstall automatically recognizes font files and will mark them for registration as required.
With respect to the second point, there is not much Tarma ExpertInstall can do about the situation. However, Tarma ExpertInstall knows which Windows versions support which font technologies, and will issue a warning if you try to build a project that installs fonts on inappropriate versions of Windows.
The following table gives an overview of font technologies and their support by Windows and the installers.
| Font technology | Extension | Windows | Tarma Installer? | Windows Installer? |
|---|---|---|---|---|
| Bitmap/vector | .fon | All | yes | yes |
| TrueType | .ttf | All | yes | yes |
| TrueType collection | .ttc | 2000 and later | yes | yes |
| OpenType | .otf | 2000 and later | yes | yes |
| Type 1 | .pfm, .pfb | 2000 and later | no | no |
Warning - There is no fixed or standard relationship between the typeface name of a font and the name of its font file, and in particular some freeware and shareware font collections take a somewhat cavalier attitude towards this. The typeface name is what the customer sees once the font is registered (for example, Book Antiqua); the font file name is what Tarma Installer uses when it installs the font (for example, Bkant.ttf).
During font registration, Tarma Installer uses the actual typeface name (Book Antiqua), but to determine whether or not to install the font in the first place, Setup uses the file name (Bkant.dll). This can give rise to problems such as:
There is little that can you can do about this, except extensive pre-deployment testing.
Fonts are typically installed as shared files in the Windows Fonts folder. Within Tarma ExpertInstall, this folder is available as Windows Volume\Windows\Fonts. Unless you know what you are doing and have a very good reason to do otherwise, we recommend that you follow this convention.
To add a font to your Tarma ExpertInstall project, act as follows.
On the Files and Folders project page, click on the Windows Volume\Windows\Fonts folder.
Select the newly added font file in the Installation Files List to display its settings in the Installation File Settings pane, then check that the following options are set:
The net result is that the font will be installed and registered when its component or your product as a whole is installed, and unregistered and removed when its component or your product as a whole is removed. All this is subject to the usual rules for file installation; in particular, Tarma Installer will correctly handle updates of existing copies of the font (based on a version check, if available) and will only remove the font if no other applications use it. This remains true even if the SharedDlls reference count of the font is unreliable (as is often the case with third-party fonts and Windows' own fonts).