IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.
'Declaration
Function DrawGlyphRun( _
ByVal As System.Object, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As MeasuringMode, _
ByVal As GlyphRun, _
ByVal As GlyphRunDescription, _
ByVal As System.IntPtr _
) As HResult
HResult DrawGlyphRun(
System.object ,
System.float ,
System.float ,
MeasuringMode ,
GlyphRun ,
GlyphRunDescription ,
System.IntPtr
)
Parameters
- clientDrawingContext
- The application-defined drawing context passed to TextLayout.Draw.
- baselineOriginX
- The pixel location (X-coordinate) at the baseline origin of the glyph run.
- baselineOriginY
- The pixel location (Y-coordinate) at the baseline origin of the glyph run.
- measuringMode
- The measuring method for glyphs in the run, used with the other properties to determine the rendering mode.
- glyphRun
- Pointer to the glyph run instance to render.
- glyphRunDescription
- A pointer to the optional glyph run description instance which contains properties of the characters associated with this run.
- clientDrawingEffectPtr
- Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of text.
Return Value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.