Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Font Chooser Sample

A font chooser dialog like that used in many applications for selecting a font family, face and size. This sample demonstrates font enumeration, rendering DirectWrite text by using GDI, and formatting text. The following screen shot shows the Font Chooser dialog box.

This topic has the parts shown in the following screen shot.

Screen shot of the Font Chooser dialog box with Font, Face, and Size lists

The Font Chooser Sample consists of the following files.

File
ChooseFont.h
FontEnumeration.h
GdiTextRenderer.h
resource.h
ChooseFont.cpp
FontEnumeration.cpp
GdiTextRenderer.cpp
ChooseFont.rc
ChooseFont.sln
ChooseFont.vcproj
ChooseFont.manifest

 

Requirements

Minimum supported clientWindows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista
Minimum supported serverWindows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008
Windows SDKWindows Software Development Kit (SDK) for Windows 7

 

Downloading the Sample

This sample is available in the following locations.

LocationPath/URL
Windows SDK\Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\DirectWrite\ChooseFont
Code GalleryDownload from MSDN Code Gallery

 

 

 

Community Additions

Show:
© 2014 Microsoft