Previous | Next

Font Support in Windows 98

Fonts are used to print text, display text on screen, and send text to other output devices. Windows 98 provides a set of Win32-based functions that developers can use to install, select, and query different fonts.

Understanding Fonts

Windows 98 provides four basic kinds of fonts, which are categorized according to how the fonts are rendered for screen or print output:

Table 11.2 shows the types of fonts that can be printed on different kinds of printers.

Table 11.2 Printer and font compatibility

Printer type Device fonts Raster fonts Vector fonts TrueType fonts
Dot matrix X X X
HP PCL X X X
PostScript X X X
Plotter X X

Font File Names and File Types

Raster and vector font files have .fon file name extensions. TrueType font files have .ttf file name extensions.

In Windows 98, information in the registry points to a single TTF file for TrueType fonts. In addition, Windows 98 includes a hidden file named Ttfcache that contains FOT type data for TrueType fonts to ensure backward compatibility with Windows 3.1. There are two files for each TrueType font in Windows 3.1: the FOT file contains a relatively short header with pointer information, and the TTF file contains the actual font data.

How Windows 98 Loads Fonts

In Windows 98, the locations for all fonts are stored only in the registry. Fonts are moved automatically when an application created for an earlier version of Windows installs a new font in the [fonts] section of Win.ini.

When Windows 98 starts, it loads the raster fonts and TrueType fonts listed in the registry. Following are descriptions of these components:

Printer drivers, which are loaded later in the startup process, look in Win.ini to load any available soft fonts. These fonts appear within an application’s list of available fonts.

Note

You can install approximately 1,000 TrueType fonts in Windows 98. Almost all of the installed fonts can be used simultaneously, and the same number can be printed in the same document. The 1,000-font maximum occurs because of the size of registry keys and available storage space for font names in the Graphics Device Interface (GDI).

How Windows 98 Matches Fonts

Windows 98 uses three methods of font matching: table mapping, numeric classification, and manual.

Basic Rules for Font Matching

When an application requests characters to print or display, Windows 98 must find the appropriate font to use from among the fonts installed on your computer. Finding the font can be complex. For example, a document might contain fonts that are not available on the current printer, or there may be more than one font with the same name installed on the computer.

Windows 98 uses the following basic rules for matching a font:

Font Mapping Table

When Windows 98 uses the font mapping table to match screen fonts to printer fonts, the characteristics used to find the closest match are, in descending order of importance: the character set, the pitch (variable versus fixed), family, typeface name, height, width, weight, slant, underline, and strikethrough. If the necessary size and bitmap are available, font mapping proceeds in the following sequence:

  1. Use the font found in the printer’s ROM.
  2. Use the font found in the printer’s cartridge slot.
  3. Use the downloadable soft font.
  4. Use the TrueType font.

Note

The Windows 98 search algorithm for finding fonts is the same as the one in Windows 95 and Windows 3.1.

Manual Matching

You can manually choose from among fonts by comparing their similarities in the Fonts folder.

To manually match fonts

  1. In Control Panel, double-click Fonts.
  2. Click the View menu, and then click List Fonts By Similarity.

    In general, if you choose a TrueType font, Windows 98 sorts the list of fonts in descending order, with the least similar font listed last.

What Happens if a TrueType Font Becomes Corrupted?

If a TrueType font becomes corrupted, Windows 98 marks that font as unavailable during the remainder of that Windows session and prevents it from being rendered any longer. You can choose to uninstall the font at that point.


Installing Fonts

In Windows 98, fonts are installed on your computer in several ways:

You can view the fonts installed on your computer by opening the Fonts option in Control Panel. The Fonts folder lets you view fonts, compare fonts by similarity, and install new fonts from disks or network locations.

You can remove fonts by dragging their font icons from the Fonts folder to the Recycle Bin.

For more information about adding fonts, in the Windows 98 Help index, search for adding fonts.

Installing Soft Fonts from Disks or Network Locations

You can use the following procedure to install soft fonts from disks or network locations.

Note

If you are installing soft fonts from a disk that includes an installation utility supplied by the vendor, you may not need to use the following procedure. The installation utility may automatically install the fonts in Windows 98. Consult the documentation supplied by the vendor.

To install soft fonts from disks or a network location

  1. In Control Panel, double-click Fonts.
  2. Click the File menu, and then click Install New Font.
  3. In the Add Fonts dialog box, use the Folders and Drives boxes to specify the drive and folder containing the fonts you want to install.
  4. In the List of fonts, select the fonts you want to install, and then click OK.

Installing Printer-Resident and Cartridge Fonts

You can also install printer-resident or cartridge fonts by using the installation utility (such as HP JetAdmin) that came with the cartridge or printer, if any, or by using a printer’s Properties sheets in the Printers folder.

To open the Printers folder

To install printer-resident or cartridge fonts

  1. In the Printers folder, right-click the printer’s icon, and then in the shortcut menu, click Properties.
  2. Click the Fonts tab. The options on the Fonts tab vary depending on the make and model of the printer, and whether any additional printer support software — such as HP JetAdmin — is installed on your computer.
  3. Select from the list of fonts or font cartridges installed on the printer, and then click OK.

    – Or –

    Click the Install Printer Fonts or similar button, and then select the fonts you want to install.