ID2D1DeviceContext4::DrawSvgGlyphRun method (d2d1_3.h)

Draws a color glyph run that has the format of DWRITE_GLYPH_IMAGE_FORMATS_SVG.

Syntax

void DrawSvgGlyphRun(
                 D2D1_POINT_2F          baselineOrigin,
  [in]           const DWRITE_GLYPH_RUN *glyphRun,
  [in, optional] ID2D1Brush             *defaultFillBrush,
  [in, optional] ID2D1SvgGlyphStyle     *svgGlyphStyle,
                 UINT32                 colorPaletteIndex,
                 DWRITE_MEASURING_MODE  measuringMode
);

Parameters

baselineOrigin

Type: D2D1_POINT_2F

The origin of the baseline for the glyph run.

[in] glyphRun

Type: const DWRITE_GLYPH_RUN*

The glyphs to render.

[in, optional] defaultFillBrush

Type: ID2D1Brush*

The brush used to paint the specified glyphs.

[in, optional] svgGlyphStyle

Type: ID2D1SvgGlyphStyle*

Values for context-fill, context-stroke, and context-value that are used when rendering SVG glyphs.

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

measuringMode

Type: DWRITE_MEASURING_MODE

Indicates the measuring method used for text layout.

Return value

None

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext4