Expand Minimize

ID2D1RenderTarget::DrawGlyphRun method

Draws the specified glyphs.

Syntax


virtual void DrawGlyphRun(
  D2D1_POINT_2F baselineOrigin,
  [in]  const DWRITE_GLYPH_RUN *glyphRun,
  [in]  ID2D1Brush *foregroundBrush,
  DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL
) = 0;

Parameters

baselineOrigin

Type: D2D1_POINT_2F

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

glyphRun [in]

Type: const DWRITE_GLYPH_RUN*

The glyphs to render.

foregroundBrush [in]

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 | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1RenderTarget

 

 

Community Additions

ADD
Show:
© 2014 Microsoft