ID2D1RenderTarget::DrawGlyphRun method

Draws the specified glyphs.

Syntax

void DrawGlyphRun(
  D2D1_POINT_2F          baselineOrigin,
  const DWRITE_GLYPH_RUN *glyphRun,
  ID2D1Brush             *foregroundBrush,
  DWRITE_MEASURING_MODE  measuringMode
);

Parameters

baselineOrigin

Type: D2D1_POINT_2F

The origin, in device-independent pixels, of the glyphs' baseline.

glyphRun

Type: const DWRITE_GLYPH_RUN*

The glyphs to render.

foregroundBrush

Type: ID2D1Brush*

The brush used to paint the specified glyphs.

measuringMode

Type: DWRITE_MEASURING_MODE

A value that indicates how glyph metrics are used to measure text when it is formatted. The default value is DWRITE_MEASURING_MODE_NATURAL.

Return Value

This method does not return a value.

Remarks

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawGlyphRun) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See Also

ID2D1RenderTarget