Share via


CRenderTarget::DrawGlyphRun

Draws the specified glyphs.

void DrawGlyphRun(
   const CD2DPointF& ptBaseLineOrigin,
   const DWRITE_GLYPH_RUN& glyphRun,
   CD2DBrush* pForegroundBrush,
   DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL
);

Parameters

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

  • glyphRun
    The glyphs to render.

  • pForegroundBrush
    The brush used to paint the specified glyphs.

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

Requirements

Header: afxrendertarget.h

See Also

Reference

CRenderTarget Class