Export (0) Print
Expand All

Custom Layout Sample

Uses a custom, application-implemented text layout object to display text in a non-rectangular region. This sample renders DirectWrite text in two different shapes: circular and funnel. The following screen shot shows text in a circular shape.

This topic has the following parts:

Screen shot of text in a circular layout

The Custom Layout Sample consists of the following files.

File
FlowLayout.h
Common.h
CustomLayout.h
FlowSink.h
FlowSource.h
TextAnalysis.h
resource.h
FlowLayout.cpp
CustomLayout.cpp
FlowSink.cpp
FlowSource.cpp
TextAnalysis.cpp
Application.rc
CustomLayout.sln
CustomLayout.vcproj
Application.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\CustomLayout
Code GalleryDownload from MSDN Code Gallery

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft