Using the C Font Library

Data for both bit-mapped and vector-mapped fonts reside in .FON files. For example, the files MODERN.FON, ROMAN.FON, and SCRIPT.FON hold data for the three vector-mapped fonts.

Summary: You can use Microsoft Windows .FON files.

The Microsoft C .FON files are identical to the .FON files used in the Microsoft Windows operating environment. If you have access to Windows, you can use any of its .FON files with Microsoft C font functions. In addition, several vendors offer software that creates or modifies .FON files, allowing you to design your own fonts.

Your programs should follow these three steps to display fonted text:

1.Register the fonts.

2.Set the current font from the register.

3.Display text using the current font.

The following sections describe each of the three steps in detail. An example program on topic demonstrates these steps.