ID2D1DeviceContext4::DrawSvgGlyphRun method

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

Syntax

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

Parameters

baselineOrigin

Type: D2D1_POINT_2F

The origin of the baseline for the glyph run.

glyphRun

Type: const DWRITE_GLYPH_RUN*

The glyphs to render.

defaultFillBrush

Type: ID2D1Brush*

The brush used to paint the specified glyphs.

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

This method does not return a value.

Requirements

   
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See Also

ID2D1DeviceContext4