Table of Contents

Constructor GlyphRun

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

GlyphRun(string, string, Twips, ColorRgb, Twips, Twips, IReadOnlyList<GlyphClusterAdvance>, UnderlineStyle, ColorRgb, bool, bool, bool, bool, bool, bool)

Initializes a glyph run.

public GlyphRun(string text, string fontFamily, Twips fontSize, ColorRgb color, Twips baselineX, Twips baselineY, IReadOnlyList<GlyphClusterAdvance> clusterAdvances, UnderlineStyle underline = UnderlineStyle.None, ColorRgb underlineColor = default, bool strike = false, bool doubleStrike = false, bool bold = false, bool italic = false, bool syntheticBold = false, bool syntheticItalic = false)

Parameters

text string
fontFamily string
fontSize Twips
color ColorRgb
baselineX Twips
baselineY Twips
clusterAdvances IReadOnlyList<GlyphClusterAdvance>
underline UnderlineStyle
underlineColor ColorRgb
strike bool
doubleStrike bool
bold bool
italic bool
syntheticBold bool
syntheticItalic bool

GlyphRun(string, string, Twips, ColorRgb, Twips, Twips, IReadOnlyList<GlyphClusterAdvance>, UnderlineStyle, ColorRgb, bool, bool, bool, bool, bool, bool, IReadOnlyList<GlyphClusterMap>?)

Initializes a glyph run with optional shaped cluster-map metadata.

public GlyphRun(string text, string fontFamily, Twips fontSize, ColorRgb color, Twips baselineX, Twips baselineY, IReadOnlyList<GlyphClusterAdvance> clusterAdvances, UnderlineStyle underline, ColorRgb underlineColor, bool strike, bool doubleStrike, bool bold, bool italic, bool syntheticBold, bool syntheticItalic, IReadOnlyList<GlyphClusterMap>? clusterMap)

Parameters

text string
fontFamily string
fontSize Twips
color ColorRgb
baselineX Twips
baselineY Twips
clusterAdvances IReadOnlyList<GlyphClusterAdvance>
underline UnderlineStyle
underlineColor ColorRgb
strike bool
doubleStrike bool
bold bool
italic bool
syntheticBold bool
syntheticItalic bool
clusterMap IReadOnlyList<GlyphClusterMap>

GlyphRun(string, string, Twips, ColorRgb, Twips, Twips, IReadOnlyList<GlyphClusterAdvance>, UnderlineStyle, ColorRgb, bool, bool, bool, bool, bool, bool, IReadOnlyList<GlyphClusterMap>?, GlyphOrientation)

Initializes a glyph run with optional shaped cluster-map metadata and a quarter-turn orientation.

public GlyphRun(string text, string fontFamily, Twips fontSize, ColorRgb color, Twips baselineX, Twips baselineY, IReadOnlyList<GlyphClusterAdvance> clusterAdvances, UnderlineStyle underline, ColorRgb underlineColor, bool strike, bool doubleStrike, bool bold, bool italic, bool syntheticBold, bool syntheticItalic, IReadOnlyList<GlyphClusterMap>? clusterMap, GlyphOrientation orientation)

Parameters

text string
fontFamily string
fontSize Twips
color ColorRgb
baselineX Twips
baselineY Twips
clusterAdvances IReadOnlyList<GlyphClusterAdvance>
underline UnderlineStyle
underlineColor ColorRgb
strike bool
doubleStrike bool
bold bool
italic bool
syntheticBold bool
syntheticItalic bool
clusterMap IReadOnlyList<GlyphClusterMap>
orientation GlyphOrientation