Muokkaa

Jaa


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 currently support hardware-accelerated text rendering with Direct2D (D2D). It supports software text rendering only. This prevents apps that require D2D support from adopting DWriteCore at this time.

The DWriteCoreGallery sample app

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