[]
        
(Showing Draft Content)

C1.Document.Util.C1HtmlGraphics.DrawGlyphRun

DrawGlyphRun Method

DrawGlyphRun(double, double, int, IntPtr, IntPtr, IntPtr, IntPtr, Color, IC1TextRangeBase, C1TextLayout, string)

Renders a run of glyphs.

Declaration
public override void DrawGlyphRun(double baselineOriginX, double baselineOriginY, int glyphCount, IntPtr glyphIndices, IntPtr glyphAdvances, IntPtr glyphOffsets, IntPtr clusterMap, Color foreColor, IC1TextRangeBase range, C1TextLayout textLayout, string text)
Parameters
Type Name Description
double baselineOriginX

The X coordinate of the glyphs' baseline, if this is right-to-left text then X points to the "right" side of the text, glyphs should be drawn from this point to the left.

double baselineOriginY

The Y coordinate of the glyphs' baseline, if range.IsSideways is true, i.e. glyphs should be drawn in vertical direction (japanese text), then Y equals to the middle of the glyphs' height.

int glyphCount

The count of the glyphs.

IntPtr glyphIndices

The pointer to the array of shorts containing indicies of the glyphs in the font specified by the range.GetFontFace(), use ((short*)glyphIndices)[i] to get i-th glyph index, all indices already resolved and can not be zero.

IntPtr glyphAdvances

The pointer to the array of floats containing the glyphs' widths, use ((float*)glyphAdvances)[i] to get width of the i-th glyph.

IntPtr glyphOffsets

The pointer to the array of DW.GlyphOffset structures, use ((DW.GlyphOffset*)glyphOffsets)[i] to get width of the i-th glyph.

IntPtr clusterMap

The pointer to the table of text clusters.

Color foreColor

The color of the text.

IC1TextRangeBase range

The C1.Document.Util.IC1TextRangeBase interface which allows to get extended information about text.

C1TextLayout textLayout

The C1.Document.Util.C1TextLayout object calling this method.

string text

The text to drawn.

Overrides