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.
Windows 98 provides four basic kinds of fonts, which are categorized according to how the fonts are rendered for screen or print output:
You can distinguish TrueType fonts by the "TT" designation. Fonts without this designation are bitmap fonts.
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 | – |
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.
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:
Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Fontsize
Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Fonts
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).
Windows 98 uses three methods of font matching: table mapping, numeric classification, and manual.
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:
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:
Note
The Windows 98 search algorithm for finding fonts is the same as the one in Windows 95 and Windows 3.1.
You can manually choose from among fonts by comparing their similarities in the Fonts folder.
To manually match fonts
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. |
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.
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
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
– Or –
In Control Panel or My Computer, click the Printers option.
To install printer-resident or cartridge fonts
– Or –
– Or –
Click the Install Printer Fonts or similar button, and then select the fonts you want to install.