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:

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 client | Windows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista |
|---|---|
| Minimum supported server | Windows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008 |
| Windows SDK | Windows Software Development Kit (SDK) for Windows 7 |
Downloading the Sample
This sample is available in the following locations.
| Location | Path/URL |
|---|---|
| Windows SDK | \Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\DirectWrite\CustomLayout |
| Code Gallery | Download from MSDN Code Gallery |
Send comments about this topic to Microsoft
Build date: 9/7/2011
