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,
  [in]           const DWRITE_GLYPH_RUN      *glyphRun,
  [in, optional]       ID2D1Brush            *defaultFillBrush = NULL,
  [in, optional]       ID2D1SvgGlyphStyle    *svgGlyphStyle = NULL,
                       UINT32                colorPaletteIndex = 0,
                       DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL
);

Parameters

baselineOrigin

Type: D2D1_POINT_2F

The origin of the baseline for the glyph run.

glyphRun [in]

Type: const DWRITE_GLYPH_RUN*

The glyphs to render.

defaultFillBrush [in, optional]

Type: ID2D1Brush*

The brush used to paint the specified glyphs.

svgGlyphStyle [in, optional]

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

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1DeviceContext4

 

 

Show: