WinXPrint_LogUnitsPerPoint


DOUBLE r = WinXPrint_LogUnitsPerPoint (hPrinter, cyLog, cyPhys)

Calculates the number of logical units per point for a printer

Parameter Description
hPrinter The handle to the printer
cyLog The total number of logical units in the y direction
cyPhys The total number of physical units in the y direction

Returns

The number of logical units per point for a printer

Remarks

The cyLog and cyPhys parameters should be the same values as you use for a WinXPrint_Page call.

Examples

'Declare a LOGFONT
LOGFONT logFont

...

'Set the height of a font to be 12 points when printed
logFont.height = XLONG(WinXPrint_LogUnitsPerPoint (hPrinter, cyLog, cyPhys)*12.0)

Related Links

WinXPrint_Start
WinXPrint_Page
WinXDraw_PixelsPerPoint
Printing
Text and Fonts