ID2D1RenderTarget::DrawGlyphRun method (d2d1.h)
Draws the specified glyphs.
Syntax
void DrawGlyphRun(
D2D1_POINT_2F baselineOrigin,
[in] const DWRITE_GLYPH_RUN *glyphRun,
[in] ID2D1Brush *foregroundBrush,
DWRITE_MEASURING_MODE measuringMode
);
Parameters
baselineOrigin
Type: D2D1_POINT_2F
The origin, in device-independent pixels, of the glyphs' baseline.
[in] glyphRun
Type: const DWRITE_GLYPH_RUN*
The glyphs to render.
[in] 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
None
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
Requirement | Value |
---|---|
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 |