Edit

DirectWrite to DWriteCore migration

DWriteCore is the Windows App SDK implementation of DirectWrite. For more info, see DWriteCore overview.

Summary of API and/or feature differences

Nearly all DirectWrite APIs remain unchanged in DWriteCore. There are a few differences, as described in APIs that are new, or different, for DWriteCore.

As you'll see in that topic, DWriteCore has a more locked-down factory type, and has the ability to retrieve pixel data without using GDI.

Migration guidance

The only change necessary when moving from DirectWrite to DWriteCore is to include the dwrite_core.h header file. For more info, and code examples, see Programming with DWriteCore.

Warning

DWriteCore does not support hardware-accelerated text rendering with Direct2D (D2D). It supports software text rendering only, which prevents apps that require D2D hardware acceleration from adopting DWriteCore.

Note

Verify whether the D2D hardware acceleration limitation above applies to your version of the Windows App SDK. Check the Windows App SDK release notes for any updates to DWriteCore rendering capabilities.

The DWriteCoreGallery sample app

Also see the DWriteCoreGallery sample app project, which demonstrates the DWriteCore API surface.