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.
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.
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.