
 FONTEST: Demonstrates a Common Dialog for Choosing Fonts
 Using ChooseFont
 
 Revised: November 24, 1992
 
 FONTEST lets you select fonts based on the destination
 device (printer or screen), font style, font size, color,
 point size, and font effects (strikeout or underline). The
 ChooseFont function invokes the common dialog box for
 choosing fonts.
 
 FONTEST demonstrates the ChooseFont function using
 predefined constants to set the font selection criteria
 and displays current font information in the client area.
 You can use the Font and Print menus to change or print
 the current font information displayed on the screen.
 
 The Font menu displays a list of initial font selection
 criteria. The selected criteria determine the options and
 fonts available in the ChooseFont common dialog box.
 FONTEST demonstrates the following flags in the ChooseFont
 function: CF_INITOLOGFONTSTRUCT, CF_PRINTERFONTS,
 CF_FIXEDPITCHONLY, CF_NOSIMULATIONS, CF_LIMITSIZE,
 CF_SCREENFONTS, CF_WYSIWYG, CF_EFFECTS, CF_ANSIONLY, and
 CF_FORCEFONTEXIST. The Font menu contains commands that
 correspond directly to these flags. The Font menu also
 contains the following commands:
 
 >  The No Whirl command demonstrates font rotation and
 spinning.
 
 >  The Set LogFont command lets you modify the LOGFONT
 structure before calling the ChooseFont function.
 
 >  The Choose Font command calls the ChooseFont function
 with the combination of selected flags and the current
 LOGFONT structure.
 
 FONTEST was built and tested under Microsoft(R)
 Windows(TM) version 3.1.
 
 KEYWORDS: ChooseFont; LOGFONT; NEWFRAME; SetBkMode;
 CreateFontIndirect; GetCharWidth; GetTextFace;
 GetTextMetrics; GetDeviceCaps; LOGPIXELSX; EXTDEVICEMODE;
 CreateFont; DM_UPDATE; DM_MODIFY; DM_ORIENTATION;
 DMORIENT_PORTRAIT; DMORIENT_LANDSCAPE; DM_COPY; HFONT;
 SETABORTPROC; ABORTDOC;
 
 TAGS:
