DWRITE_COLOR_GLYPH_RUN structure (dwrite_2.h)
Contains the information needed by renderers to draw glyph runs with glyph color information. All coordinates are in device independent pixels (DIPs).
Syntax
struct DWRITE_COLOR_GLYPH_RUN {
DWRITE_GLYPH_RUN glyphRun;
DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription;
FLOAT baselineOriginX;
FLOAT baselineOriginY;
DWRITE_COLOR_F runColor;
UINT16 paletteIndex;
};
Members
glyphRun
Glyph run to draw for this layer.
glyphRunDescription
Pointer to the glyph run description for this layer. This may be NULL. For example, when the original glyph run is split into multiple layers, one layer might have a description and the others have none.
baselineOriginX
X coordinate of the baseline origin for the layer.
baselineOriginY
Y coordinate of the baseline origin for the layer.
runColor
Color value of the run; if all members are zero, the run should be drawn using the current brush.
paletteIndex
Zero-based index into the font’s color palette; if this is 0xFFFF, the run should be drawn using the current brush.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 R2 [desktop apps | UWP apps] |
Header | dwrite_2.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for