Microsoft KB Archive/24344

Font Size in Modified Printer Driver

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

1.x 2.x 3.x 4.00 5.00 5.50 6.00

MS-DOS

Question:

What is the largest font size I can put inside my modified printer driver? After I modified my driver by putting font size:288, it says 16 point under Format Character when I go into Word to test that font and font size.

Response:

Only 1 byte is used for font size, so 255 is the largest number that can be represented (256 values, 0 to 255). This number in the PRD is represented in half points.

Because the number you entered in font size, 288, was too large for one byte, Word subtracted 256 from 288 to get 32. Font size is represented in half points (that is, 32 divided by 2 equals 16). With this modified driver installed under Print Options, you will see font size 16 under Format Character. The number 16 you received was an adjustment for a value too large to fit in 1 byte.

KBCategory: kbother KBSubcategory: Additional reference words:

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