Lably
Skip to content

DirectWrite

Windows text layout and glyph rendering API

  • 2 min read
  • 2 chapters

Related on Lably

Through Unicode

Features

  • Comprehensive support for Unicode, with over 20 scripts providing layout and rendering of every language supported in Windows. DirectWrite supports measuring, drawing, and hit-testing of multi-format text. Supported Unicode features include BIDI, line breaking, surrogates, UVS, language-guided script itemization, number substitution, and glyph shaping.
  • Sub-pixel ClearType font rendering with bi-directional antialiasing which can interoperate with GDI/GDI+, Direct2D/Direct3D and any application-specific technology. When using with Direct2D, text rendering can be hardware-accelerated or can use WARP software rasterizer when hardware acceleration is not available.
  • Supports advanced typographic features of OpenType, such as stylistic alternates and swashes, which were never supported in GDI and WinForms. These features were demoed at DirectWrite's launch (at PDC2008) using the Gabriola font, itself also introduced with Windows 7.
  • Provides a low-level glyph rendering API for those who employ proprietary text layout and Unicode-to-glyph processing.

In Windows 8.1, DirectWrite gained support for color fonts.

DWriteCore

DWriteCore is the Windows App SDK (Project Reunion) implementation of DirectWrite that runs on versions of Windows down to Windows 10, version 1809 (10.0; Build 17763), and opens the door for cross-platform usage.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Computing and communication