DirectWrite
Windows text layout and glyph rendering API
title: "DirectWrite" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["text-rendering-libraries", "directx"] description: "Windows text layout and glyph rendering API" topic_path: "general/text-rendering-libraries" source: "https://en.wikipedia.org/wiki/DirectWrite" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Windows text layout and glyph rendering API ::
DirectWrite is a text layout and glyph rendering API by Microsoft. It was designed to replace GDI/GDI+ and Uniscribe for screen-oriented rendering and was first shipped with Windows 7 and Windows Server 2008 R2, as well as Windows Vista and Windows Server 2008 (with Platform Update installed). DirectWrite is hardware-accelerated (using the GPU) when running on top of Direct2D, but can also use the CPU to render on any target, including a GDI bitmap.
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.
Uses
The XPS viewer in Windows 7 uses DirectWrite, but it renders the output on a GDI+ surface.
Internet Explorer 9 and later versions use DirectWrite layered over Direct2D for improved visual quality and performance. Firefox 4 also added DirectWrite support, but rendering in the DirectWrite specific style was made non-default for some fonts in Firefox 7 due to user complaints about the rendering quality.
Microsoft Office 2013 supports either Direct2D/DirectWrite or GDI/Uniscribe for display rendering and typography.
Google Chrome in Windows supports DirectWrite starting from version 37. Microsoft Edge with Chromium engine also supports DirectWrite and use it by default.
Telegram's desktop client uses DirectWrite to render color emojis on Windows.
Steam has the option to enable DirectWrite for improved font smoothing and kerning on its desktop client
References
References
- (10 September 2009). "The Platform Update for Windows Vista". DirectX Developer Blog.
- (26 January 2022). "Introducing DirectWrite". Microsoft.
- [https://web.archive.org/web/20101018203853/http://channel9.msdn.com/Blogs/pdc2008/PC18 Windows 7: Introducing Direct2D and DirectWrite] – PDC 2008 video 15:00-16:00 and 27:00-28:00
- (29 October 2008). "Windows 7: Introducing Direct2D and DirectWrite – pdc2008". Microsoft.
- (4 October 2021). "What's new in DirectWrite". Microsoft.
- Dan McLachlan. (26 June 2013). "Innovations in High Performance 2D Graphics with DirectX – Build 2013". Microsoft.
- "DWriteCore overview".
- Worachai Chaoweeraprasit. (13 February 2009). "Advances in typography and text rendering in Windows 7". Microsoft.
- Tim Anderson. (11 August 2010). "Firefox 4 as Psychedelic as IE9 with Direct2D enabled". itwriting.com.
- Shankland, Stephen. (25 March 2014). "Firefox 4 beta 4 adds hardware acceleration". CNET.
- (13 September 2010). "Mozilla chucks Roc at Microsoft's new hardness". The Register.
- (11 August 2011). "DirectWrite Text Rendering in Firefox 6". Blog.mozilla.org.
- Murray Sargent. "Office Adopts New Windows Display Technology". Microsoft.
- Brandon Chester. (26 August 2014). "Google Updates Chrome To Version 37 With DirectWrite Support". AnandTech.
- (2 June 2021). "Improving font rendering in Microsoft Edge".
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::