Model Data Dialog Box

A number of sets of printer model commands can be set up for the minidriver. To specify printer model commands, select ModelData from the Printer Data menu on the minidriver’s Printer Data window. Then, select Resolution to display the initial ModelData dialog box.

To select an existing set of printer model commands, highlight the desired set of Printer Models to edit on the minidriver’s Printer Data window. Then, double click on the selection to display the ModelData dialog box. Most of the printer model-specific data is entered in the ModelData dialog box.

When you finish entering data into the ModelData dialog box:

Name of Model

The Name of Model control specifies a printer’s model name. Click the Next Model or Previous Model buttons as needed to display the appropriate printer name or enter a new model name and select the Add button.

If a driver supports two models that are identical except for the name, the names are separated by a percent sign (%). For example, HP LaserJet%HP LaserJet IIP Plus for the HP LaserJet IIP and HP LaserJet IIP Plus printers.

Page-Size Limits

The Page Size Limits controls specify the minimum allowable physical page size and the maximum printable region widths and heights in master units for user-defined paper sizes. If the minidriver supports user-defined paper sizes and the appropriate controls in the Paper Sizes dialog box are initialized, set the Page Size Limits controls.

Diconix 150 Plus: The maximum allowable printable width is imposed by the model and is set to 6624 (6.9 inches as expressed in master units). The Diconix printer does not impose any paper-length constraints. For example, an arbitrary length of 24 inches was chosen that translates into 13,824 vertical master units (24 * 576).

The minimum allowable width for the Diconix printer is imposed by the rubber rollers on the bail arm. These rollers can be adjusted from 6 to 8 inches apart imposing the smallest allowable paper width of 6 inches, which translates into 1,924 horizontal master units (6 * 320). The minimum allowable height is the distance from the entrance of the paper-feed slot to the top bail arm. This distance is 3.5 inches or 2,016 vertical master units (3.5 * 576).

HP LaserJet IIP: The maximum allowable printable width is 8 inches. This value translates into 2400 horizontal master units (8 * 300). The maximum allowable printable height is 13 inches. This value translates into 3900 master units (13 * 300). The minimum allowable page width and height is one inch. This value translates into 300 master units (1 * 300).

Supported Attributes

The Supported Attributes list box contains the names of each of the related dialog boxes. These dialog boxes correspond to the Control Info, Paper Info, Graphics Info, Vector Info, and Font Info selections accessible by using the Printer Data menu. To select a name from the Supported Attributes list, scroll to and highlight the desired name. Then double click the name to display the dialog box containing a list of the current setups. Each dialog box contains the same list of current setups that is shown in the separate box listings on the minidriver’s Printer Data window.

When the requested dialog list box is displayed, select the default setting from the Default list box. Next, highlight the appropriate items in the list and click one of the following buttons as needed:

Control

Description

Enable All

Enable all selected items.

Inhibit All

Disable all selected items.

Cancel

Cancel the dialog box.

OK

Accept the selected items and the default setting.

Capability Bitfields

The Capability Bitfields list box contains the names of dialog boxes that specify the capabilities of your printer. You select a dialog box by double-clicking its name.

The fCurves, fLines, fPolygonals, and fClip dialog boxes describe the vector graphics capabilities of the printer. If your driver must support a particular vector graphics capability, it must set the appropriate bit indicating it supports this capability and must contain code to handle the device driver interface (DDI) call for this capability without calling UNIDRV.DLL. For example, if the CC_CIRCLES bit in fCurves is set, your driver must handle the DDI Output function when the output style is OS_CIRCLE. If your minidriver does not contain this code, or if your printer does not have vector capabilities, you should not set any of the vector graphics capability bits. For vector-capable devices, these bits should be set so that they correspond to the vector commands that you defined through the Printer Data menu.

General Capabilities Dialog Box

The fGeneral dialog box identifies printer capabilities such as double-sided printing, multiple-copy printing, font rotation capabilities, bitmap rotation capabilities, and so on. The fGeneral dialog box has these controls:

Control

Description

MD_SERIAL

Output must be sorted sequentially in the y-direction, because the printer cannot scroll backwards.

MD_ROTATE_FONT_ABLE

The printer can rotate hardware fonts to match the current paper orientation. Fonts supplied by Windows (TrueType, bitmap, and vector) are always available in both orientations.

MD_COPIES

The printer supports multiple-copy printing.

MD_DUPLEX

The printer supports double-sided printing.

MD_NO_ADJACENT

The printer cannot fire adjacent pins on the print head in all resolutions. If adjacent pins can be fired in some resolutions but not others, this should be indicated for each resolution.

MD_LANDSCAPE_GRX_ABLE

The printer can rotate a graphic image (or bitmap) to match the current paper orientation. If the printer is unable to rotate graphics, the Universal Printer Driver will perform the graphic rotation.

MD_ALIGN_BASELINE

The printer aligns text output on the baseline rather than the top of the character bounding-box. (The default alignment is the top of the bounding box.)

MD_FONT_MEMCFG

(not supported by Windows NT)

MD_LANDSCAPE_RT90

The printer rotates 90 degrees in the counterclockwise direction for landscape output (this means that the right side of a page or image is printed first). If this control is not set, the default rotation of 270 degrees in the counterclockwise direction is assumed. Only set this control if the printer supports a set-orientation command.

MD_USE_CURSOR_ORIG

The cursor origin is calculated using the values entered in the cursor origin controls of the Paper Sizes dialog box.

If the MD_USE_CURSOR_ORIG is not set, the cursor origin is the upper-left corner of the printable region.

MD_WHITE_TEXT

The printer can print white text on a black background. The Universal Printer Driver uses the commands you entered in the Font Simulation dialog box to turn white text printing on and off.

MD_PCL_PAGEPROTECT

The printer supports HP PCL5-style page protection. The Universal Printer Driver uses the commands you entered in the Paper Sizes dialog box to set the page protection mode.

MD_MARGINS

(not supported by Windows NT)

MD_CMD_CALLBACK

(not supported by Windows NT)

MD_MEMRES

(not supported by Windows NT)

Diconix 150 Plus: Check the MD_SERIAL box.

HP LaserJet IIP: Check the MD_PARAMETERIZE, MD_COPIES, MD_ALIGN_BASELINE, MD_LANDSCAPE_RT90, and MD_USE_CURSOR_ORIG boxes.

Curve Capabilities Dialog Box

(Not currently supported)

Line Capabilities Dialog Box

(Not currently supported)

Polygon Capabilities Dialog Box

(Not currently supported)

Text Capabilities Dialog Box

The fText and fLText dialog boxes identify text-rendering capabilities in portrait and landscape mode when the selected font is a device font. (The fLText dialog box is identical to the fText dialog box; the fText dialog box specifies text rendering capabilities in portrait mode, and the fLText dialog box specifies text rendering capabilities in landscape mode.) The fText and fLText dialog boxes have these controls:

Control

Description

TC_OP_CHARACTER

Device supports OutputPrecision CHARACTER. This bit should be set if the device has any hardware fonts.

TC_OP_STROKE

Device supports OutputPrecision STROKE. (Not used.)

TC_CP_STROKE

Device supports ClipPrecision STROKE. (Not used.)

TC_CR_90

Device fonts may be rotated at 90-degree increments independent of current page orientation. (Not used.)

TC_CR_ANY

Device supports character rotation (variable) independent of current page orientation. (Not used.)

TC_SF_X_YINDEP

Device supports scaling independent of X and Y.

TC_SA_DOUBLE

Device supports doubled character for scaling.

TC_SA_INTEGER

Device supports integer multiples for scaling.

TC_SA_CONTIN

Device supports any multiples for scaling.

TC_EA_DOUBLE

Device supports bold characters.

TC_IA_ABLE

Device supports italicized characters.

TC_UA_ABLE

Device supports underlined characters.

TC_SO_ABLE

Device supports strikeout characters.

TC_RA_ABLE

Device can printer raster fonts. Indicates that GDI should enumerate any raster fonts available for this device in response to the EnumFonts function. If this bit is not set, GDI supplied raster fonts will not be enumerated in response to EnumFonts, although device fonts, TrueType fonts, and GDI vector fonts will continue to be enumerated.

TC_VA_ABLE

Device can print vector fonts. (Not used.)

Diconix 150 Plus: Check the TC_OP_CHARACTER, TC_EA_DOUBLE, TC_IA_ABLE, TC_UA_ABLE, and TC_RA_ABLE boxes.

HP LaserJet IIP: Check the TC_UA_ABLE box.

Clipping Capabilities Dialog Box

(Not currently supported)

Raster Capabilities Dialog Box

(Not currently supported)

Left Margin Width

The sLeftMargin box specifies the width of the unprintable region on the left edge of the page. Typically, this value is set only for dot-matrix printers and is specified in master units.

Diconix 150 Plus: Use 768. This value is converted from horizontal master units (using the Xdpi value from the master-units dialog box). The maximum printable page width is 6.9 inches. Subtracting this value (6.9 inches) from the width of a paper page (8.5 inches) leaves 1.6 inches for the borders of the page. Dividing 1.6 by 2 leaves .8 inches. This is the width of the left and right borders.

HP LaserJet IIP: Use 50. The unprintable left-margin measures .166 inches. Convert this value to master units (300 * .166 = 50).

Maximum Physical Page Width

The sMaxPhysWidth box specifies the maximum allowable physical page width in master units.

Diconix 150 Plus: Use 8160. This value is converted from horizontal master-units (using the Xdpi value from the master-units dialog box). The maximum physical page width the printer can handle is 8.5 inches.

HP LaserJet IIP:Use 2550. This value is converted from horizontal master units (300 * 8.5 = 2550).

Maximum Number of Fonts per Page

The sMaxFontsPage box specifies the maximum number of device fonts on a single page. If there is no limit to the number of device fonts allowed on a printer, this value is -1.

Diconix 150 Plus: Use -1.

HP LaserJet IIP: Use -1.

Number of Cartridge Slots

The sCartSlots box specifies the number of font-cartridge slots on the printer.

Diconix 150 Plus: Use 0.

HP LaserJet IIP: Use 1.

Default Character-Translation Table

The Default CTT ID box identifies the default CTT. If a single CTT is used for all device fonts, this value can be entered in the Default CTT control in the ModelData dialog box. If the CTT for the fonts is provided by RasDD, the Default CTT is that CTT ID multiplied by -1. If RasDD uses a driver-supplied CTT, the Default CTT value is a positive integer. The Default CTT is zero if RasDD does not use a single CTT.

Diconix 150 Plus: Use 1.

HP LaserJet IIP: Use 0.

Default Font ID

The Default Font ID box identifies the default font that RasDD uses for text output when an application fails to request a specific font set. The default font for a fixed pitch font is 10 point and 10 characters per inch, if possible.

Diconix 150 Plus: Use 1.

HP LaserJet IIP: Use 225.

LookAhead Region

The LookAhead Region box specifies the length of the LookAhead Region in master units. This value is 0 for most printer models. A nonzero value is required for HP DeskJet printers.

Diconix 150 Plus: Use 0.

HP LaserJet IIP: Use 0.

Resident Fonts Dialog Box

Click the Resident Fonts button to display the Resident Fonts dialog box. The Resident Fonts dialog box contains two list boxes for device fonts. The list box on the left side contains the names of Portrait Fonts. The list box on the right side contains the names of Landscape Fonts. The fonts considered to be resident on the device are highlighted.

To select fonts in either list, highlight each of the desired fonts or click the Select All button to select all of the device fonts. Click Clear All to clear all of the current selections. When complete, click OK to accept the selections.

Diconix 150 Plus: The only resident font is 10-point Times Roman for portrait mode.

HP LaserJet IIP: Several fonts are available in both portrait and landscape orientation and are selected in each control.

Memory Configuration Dialog Box

Click the Memory Config button to display the Memory Configuration dialog box. This dialog box contains a list of possible printer memory configurations ranging from 65K/128K to 5820K/17M.

The value in the left column specifies the amount of memory available to RasDD to store downloaded font data and bitmap raster data. The value in the right column specifies the amount of memory to be displayed as available. Because the printer typically reserves some memory for its own use, these two values are rarely the same.

If the printer supports HPPCL and the driver supports downloadable fonts, select the memory configurations for the device. A memory configuration is defined as the amount of RAM available on the printer to store raster bitmap graphics and download font information.

To select memory configurations, highlight each of the necessary configurations or click the Enable All button to select all of the device fonts. (Click Inhibit All to clear all of the current selections). When complete, click OK to accept the selections.

Diconix 150 Plus: No memory configurations are selected.

HP LaserJet IIP: The 369/512K, 2243K/2.5M, and 4491K/4.5M configurations are selected. The HP LaserJet IIP comes with 512K of memory.