[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextRendererBase.DrawGlyphRun

DrawGlyphRun Method

DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)

IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.

Declaration
public virtual HResult DrawGlyphRun(object clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun glyphRun, GlyphRunDescription glyphRunDescription, IntPtr clientDrawingEffectPtr)
Parameters
Type Name Description
object clientDrawingContext

The application-defined drawing context passed to Draw(object, TextRenderer, float, float).

float baselineOriginX

The pixel location (X-coordinate) at the baseline origin of the glyph run.

float baselineOriginY

The pixel location (Y-coordinate) at the baseline origin of the glyph run.

MeasuringMode measuringMode

The measuring method for glyphs in the run, used with the other properties to determine the rendering mode.

GlyphRun glyphRun

Pointer to the glyph run instance to render.

GlyphRunDescription glyphRunDescription

A pointer to the optional glyph run description instance which contains properties of the characters associated with this run.

IntPtr 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.

Returns
Type Description
HResult

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Implements