Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.51 KB

d1136.md

File metadata and controls

38 lines (24 loc) · 1.51 KB
title ms.assetid description keywords topic_type api_name api_type ms.topic ms.date
D1136 Text Rendering Mode Conflict
c05c1e7f-4505-4ee0-9106-2fee59e7e8f6
Learn more about: D1136: Text Rendering Mode Conflict
D1136 Text Rendering Mode Conflict Direct2D
apiref
D1136 Text Rendering Mode Conflict
NA
reference
05/31/2018

D1136: Text Rendering Mode Conflict

The DWRITE_RENDERING_MODE and the D2D1_TEXT_ANTIALIAS_MODE set on this render target are not compatible with one another.

 

Possible Causes

For text-based operations such as ID2D1RenderTarget::DrawGlyphRun and ID2D1DeviceContext::GetGlyphRunWorldBounds, Direct2D considers the current text antialiasing option of the device context as well as the DirectWrite antialiasing option. Antialiasing semantics differ slightly between Direct2D and DirectWrite. This message occurs when the two antialiasing options specified do not agree.

Possible Fixes

To ensure that the Direct2D text antialiasing mode agrees with the DirectWrite rendering mode, ensure that they meet the following requirements: • For D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE, the DirectWrite rendering mode may not be OUTLINE or ALIASED.• For D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE, the DirectWrite rendering mode may not be ALIASED.• For D2D1_TEXT_ANTIALIAS_MODE_ALIASED, the DirectWrite rendering mode may not be any of the CLEARTYPE options. [newline] To change the current Direct2D text antialiasing mode, use ID2D1RenderTarget::SetTextAntialiasMode.