ID2D1DeviceContext7::DrawPaintGlyphRun method (d2d1_3.h)
Important
Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
To support COLR v1, draws a color glyph run that has the format of DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE.
Syntax
void DrawPaintGlyphRun(
D2D1_POINT_2F baselineOrigin,
const DWRITE_GLYPH_RUN *glyphRun,
ID2D1Brush *defaultFillBrush,
UINT32 colorPaletteIndex,
DWRITE_MEASURING_MODE measuringMode
);
Parameters
baselineOrigin
Type: D2D1_POINT_2F
The baseline.
glyphRun
Type: _In_ CONST DWRITE_GLYPH_RUN *
The glyph run to draw.
defaultFillBrush
Type: _In_opt_ ID2D1Brush *
Default fill brush.
colorPaletteIndex
Type: UINT32
The index used to select a color palette within a color font. Note that this not the same as the paletteIndex in the DWRITE_COLOR_GLYPH_RUN struct, which is not relevant for paint glyphs.
measuringMode
Type: DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE_NATURAL
Specifies measuring mode for positioning glyphs in the run.
Return value
None
Requirements
Requirement | Value |
---|---|
Header | d2d1_3.h |