WinXDraw_MakeLogFont


LOGFONT logFont = WinXDraw_MakeLogFont (STRING font, height, style)

Fills in a LOGFONT structure

Parameter Description
STRING font The name of the font, e.g. "Arial"
height The height of the font in pixels
style A set of flags describing attributes of the text. See remarks for more info

Returns

A filled in LOGFONT structure

Remarks

The style parameter can be any combination of

$$FONT_BOLD
Bold
$$FONT_ITALIC
Italic
$$FONT_UNDERLINE
Underline
$$FONT_STRIKEOUT
Strikeout

Examples

'Declare the LOGFONT structure
LOGFONT logFont

...

'Fill in a LOGFONT for bold italic Arial at 20 pixels
logFont = WinXDraw_MakeLogFont ("Arial", 20, $$FONT_BOLD|$$FONT_ITALIC)

Related Links

Text and Fonts
WinXDrawText
WinXSetFont