DirectWrite
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 shipped with Windows 7 and Windows Server 2008 R2, as well as Windows Vista and Windows Server 2008 (with Platform Update installed).[1] DirectWrite is hardware-accelerated (using the GPU) when running on top of Direct2D, but can really render on the CPU to any target, including a GDI bitmap.[2][3]
Microsoft has fixed many DirectWrite bugs in Windows 7 through Windows 7 Service Pack 1(SP1),[4] KB2505438 update,[5] KB2665364 security update[6] and KB2670838 update.[7]
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 text 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.[8]
- 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.[9][10]
Uses
The XPS viewer in Windows 7 uses DirectWrite, but it renders the output on a GDI+ surface.[11]
Internet Explorer 9 and later versions use DirectWrite layered over Direct2D for improved visual quality and performance.[12][13][14] Firefox 4 also added DirectWrite support, but this was made non-default for some fonts in Firefox 7 due to user complaints about the rendering quality.[15]
Microsoft Office 2013 supports either Direct2D/DirectWrite or GDI/Uniscribe for display rendering and typography.[16]
Google Chrome in Windows supports DirectWrite starting from version 37.[17]
See also
- Pango: a cross platform library for rendering text in high quality, emphasising support for multilingual text.
- A REST API for hinting with DirectWire support
- Cairo: a vector-based cross platform graphics library that can render text.
References
- ↑ "The Platform Update for Windows Vista". DirectX Developer Blog. 10 September 2009. Retrieved 27 January 2012.
- ↑ "Introducing DirectWrite". Microsoft Developer Network. Microsoft.
- ↑ Windows 7: Introducing Direct2D and DirectWrite – PDC 2008 video 15:00-16:00 and 27:00-28:00
- ↑ http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3202ce6-4056-4059-8a1b-3a9b77cdfdda
- ↑ http://support.microsoft.com/kb/2505438
- ↑ http://support.microsoft.com/kb/2665364
- ↑ "A platform update is available for Windows 7 SP1 and Windows Server 2008 R2 SP1". Microsoft Support web site. 2012-11-14. Retrieved 2012-11-14.
- ↑ "Windows 7: Introducing Direct2D and DirectWrite – pdc2008". Channel 9. Microsoft. 29 October 2008.
- ↑ "What's new in DirectWrite". Microsoft Developer Network. Microsoft.
- ↑ Dan McLachlan (26 June 2013). "Innovations in High Performance 2D Graphics with DirectX – Build 2013". Channel 9. Microsoft.
- ↑ Worachai Chaoweeraprasit (13 February 2009). "Advances in typography and text rendering in Windows 7". Microsoft Developer Network. Microsoft.
- ↑ Tim Anderson (11 August 2010). "Firefox 4 as Psychedelic as IE9 with Direct2D enabled". itwriting.com. Retrieved 6 August 2014.
- ↑ Shankland, Stephen (25 March 2014). "Firefox 4 beta 4 adds hardware acceleration". CNET. Retrieved 6 August 2014.
- ↑ "Mozilla chucks Roc at Microsoft's new hardness". The Register. 13 September 2010.
- ↑ "DirectWrite Text Rendering in Firefox 6". Blog.mozilla.org. 11 August 2011. Retrieved 9 August 2014.
- ↑ Murray Sargent. "Office Adopts New Windows Display Technology". Microsoft Developer Network. Microsoft.
- ↑ Brandon Chester (26 August 2014). "Google Updates Chrome To Version 37 With DirectWrite Support". AnandTech. Retrieved 27 August 2014.
|