Export (0) Print
Expand All

Font Enumeration Sample

Enumerates the fonts in the system font collection and outputs the font family name to the console. The following screen shot shows this output.

This topic has the following parts:

Screen shot of console output with font family names

The Font Enumeration Sample consists of the following files.

File
FontEnumeration.cpp
FontEnumeration.sln
FontEnumeration.vcproj
ReadMe.txt

 

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\FontEnumeration
Code GalleryDownload from MSDN Code Gallery

 

 

 

Community Additions

ADD
Show:
© 2015 Microsoft