The dmYResolution and dmTTOption members in the DEVMODE structure are new for Windows 3.1. The DEVMODE structure returned by the ExtDeviceMode function contains one or both of these members if the dmField member includes the following values:
DM_YRESOLUTION 0x0002000L DM_TTOPTION 0x0004000L
The dmYResolution member specifies the vertical resolution of the printer in dots per inch. In this case, the dmPrintQuality member specifies the horizontal resolution in dots per inch. If DM_YRESOLUTION bit is not set in dmFields, dmYResolution is not used and dmPrintQuality retains the original meaning.
The dmTTOption member specifies how TrueType fonts should be printed. The member can be set to one of the following values.
Value | Meaning |
DMTT_BITMAP (1) | Prints TrueType fonts as graphics. |
DMTT_DOWNLOAD (2) | Downloads TrueType fonts as soft fonts. |
DMTT_SUBDEV (3) | Substitutes device fonts for TrueType. |
Note:
Before calling the the CreateDC or CreateIC functions, an application should call the DeviceCapabilities function with the DC_TRUETYPE index to retrieve the driver's TrueType capabilities. The application can use the value returned by the driver to set the dmTTOption member to the appropriate value.
The default action is to download TrueType as soft fonts for a printer that uses Printer Control Language (PCL); substitute device fonts for TrueType for Adobe PostScriptÒ printers; and to print TrueType fonts as graphics for dot-matrix printers.