IDWritePaintReader::SetTextColor method (dwrite_3.h)

Sets the client-defined text color. The default value is transparent black. Changing the text color can affect the appearance of a glyph if its definition uses the current text color. If that's the case, then the SetCurrentGlyph method returns the DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR flag via the glyphAttributes output parameter.

Syntax

HRESULT SetTextColor(
  DWRITE_COLOR_F const & textColor
);

Parameters

textColor

Type: _In_reads_(paletteEntryCount) DWRITE_COLOR_F const &

Specifies the text color.

Return value

A standard HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 1.2 or later)
Header dwrite_3.h