How-to Topics (DirectWrite)

The following topics provide an overview of the DirectWrite API.

In this section

Topic Description
How to Align Text
You can align DirectWrite text by using the SetTextAlignment method of the IDWriteTextFormat interface
How to Add Support for Multiple Monitors
DirectWrite includes support for systems with multiple monitors. Different monitors may have different pixel geometry (RGB, BGR, or FLAT) or other attributes. For more information about pixel geometry, see the DWRITE_PIXEL_GEOMETRY reference topic. This topic will show you how to add support for multiple monitors to your DirectWrite application.
How to Ensure That Your Application Displays Properly on High-DPI Displays
Describes how to create a window the displays properly on high-DPI displays.
How to Ensure Text is Displayed with the Correct Reading Direction
Some languages, such as Arabic and Hebrew, require a right-to-left reading direction. The for a DirectWrite text format object, the default reading direction is left-to-right. DirectWrite does not automatically infer the reading direction from the locale, so you must do this yourself.
How to Enumerate Fonts
This overview will show how to enumerate the fonts in the system font collection, by family name.
How to Perform Hit Testing on a Text Layout
Provides a short tutorial about how to add hit testing to a DirectWrite application that displays text by using the IDWriteTextLayout interface.
How to Add Inline Objects to a Text Layout
Provides a short tutorial on adding inline objects to a DirectWrite application that displays text using the IDWriteTextLayout interface.
How to Add Client Drawing Effects to a Text Layout
Provides a short tutorial on adding client drawing effects to a DirectWrite application that displays text using the IDWriteTextLayout interface and a custom text renderer.