Microsoft KB Archive/22302

Calculating Widths for the Character Width Tables

PSS ID Number: Q22302 Article last modified on 11-02-1994

2.x 3.x 4.00 5.00

MS-DOS

Question:

How are the widths calculated in the Character Width Tables of the printer driver (PRD)?

Response:

The width of each character of a proportional space font should be in the documentation supplied with the printer. However, the printer documentation probably expresses the widths in units of measurement inappropriate for the Character Width Table in the PRD, so the widths as given in the printer documentation usually cannot be entered directly into the PRD.

In the Character Width Tables, these widths must be expressed in the same units that dxaMin is expressed in. For example, suppose the printer documentation gives the widths in 1/120 inch, and says the width of the letter “b” (ASCII decimal 100) is “5”. In the PRD, the dxaMin is expressed in twips (1/1440 inch). Therefore, 5/120 inch equals 60/1440 inch, so the entry for character 100 would be 60 in the Character Width Table.

KBCategory: kbother KBSubcategory: Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1994.