WinXDraw_PixelsPerPoint


DOUBLE r = WinXDraw_PixelsPerPoint ()

Gets the number of screen pixels per point at the current resolution.

Parameter Description

Returns

The numbe of screen pixels per point at the current screen resolution.

Remarks

Font sizes are usually specified in points, but the LOGFONT structure uses pixels. This function provides a simple way to convert between the two.

Examples

'Declare the LOGFONT
LOGFONT logFont

...

'create a LOGFONT 12 points high
logFont = WinXDraw_MakeLogFont ("Arial", XLONG(WinXDraw_PixelsPerPoint ()*12.0), 0)

Related Links

Text and Fonts
WinXPrint_LogUnitsPerPoint
WinXDraw_MakeLogFont
WinXDraw_GetFontDialog