## Printer Device Driver

[prev][next][parent][TOC]

### Font Test 32-Bit Printing Utility

Font Test is a 32-bit Presentation Manager application that is used to browse and print text files on local or remote print queues using many formatting options. Font Test also allows you to view various capabilities of the printer attached to a selected print queue including font and hardcopy (form) information.

Font Test provides a way to invoke OS/2 application program interface (API) calls that query presentation drivers for information such as:

DevQueryCaps General device information
DevQueryHardcopyCaps Device hardcopy information
GpiQueryFontmetrics Device font information
GpiQueryWidthTable Current width table information
GpiQueryKerningPairs Current kerning pair table information

Font Test can be used to test presentation drivers because it follows application printing conventions outlined in "Print Job Submission and Manipulation" in the OS/2 Programming Guide, Volume 3. Font Test also performs error assertion on every PM API call that is handled by the presentation driver.

The application printing conventions that Font Test follows include:

Providing a dialog box that allows the user to enumerate and print to OS/2 Print Objects.

Providing a dialog box that allows the user to select the page format.

Providing a dialog box that allows the user to select any public System or Device fonts.

Providing a dialog box that allows the user to change Job Properties for each print job and view information about the device being used for output.

Performing queued PM printing by opening the device context (DC) OD_QUEUED using the standard data format PM_Q_STD.

Performing WYSIWYG printing of text for system fonts.

Printing using a separate thread.

Notes:

1.Font Test is 32-bit code requiring OS/2 2.0 or later to run.
2.WYSIWIG output is achieved when system fonts (of matching resolution) are selected on the Font page of the Program Settings notebook. When device fonts are selected, they will be simulated to the screen using a system Courier font and scaled to the correct point size.
3.Extensive online help is provided with Font Test.