Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the current font?

43 views
Skip to first unread message

Dan Duda

unread,
May 3, 1998, 3:00:00 AM5/3/98
to

What's the easiest way to get the current font? I heard that the
default printer font isn't the same as the default screen font. So I
want to set the printer font to the current font before printing. Also,
is there a common font selection dialog? Thanks.

Dan


Tom Serface

unread,
May 4, 1998, 3:00:00 AM5/4/98
to

The font selection dialog is CFontDialog()

You can get the current font for a window using GetFont()

Similarly, you can set the font by creating a font and using the CWnd's
SetFont() function.

HTH,

Tom

0 new messages