Table of Contents

Class RunComposer

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.dll

Refines the style of a single span.

public sealed class RunComposer
Inheritance
RunComposer
Inherited Members

Remarks

Each call composes another transformation on top of the inherited style rather than replacing it, so .Bold().FontSize(18) applies both and still inherits the typeface from its surroundings.

Methods

Bold()

public RunComposer Bold()

Returns

RunComposer

BreakAnywhere(bool)

Lets lines break between any two characters of the run, not only between words.

public RunComposer BreakAnywhere(bool value = true)

Parameters

value bool

Returns

RunComposer

Feature(string, int)

Sets the OpenType feature tag — "smcp", "onum", "ss01" — to value: 0 off, 1 on, higher to choose among alternates.

public RunComposer Feature(string tag, int value = 1)

Parameters

tag string
value int

Returns

RunComposer

Highlight(Ink)

public RunComposer Highlight(Ink ink)

Parameters

ink Ink

Returns

RunComposer

Highlight(string)

public RunComposer Highlight(string hex)

Parameters

hex string

Returns

RunComposer

Ink(Ink)

public RunComposer Ink(Ink ink)

Parameters

ink Ink

Returns

RunComposer

Ink(string)

public RunComposer Ink(string hex)

Parameters

hex string

Returns

RunComposer

Italic(bool)

public RunComposer Italic(bool value = true)

Parameters

value bool

Returns

RunComposer

Leading(float)

public RunComposer Leading(float multiplier)

Parameters

multiplier float

Returns

RunComposer

LeftToRight()

Reads the run left to right, set apart from the text around it: an English phrase in a right-to-left paragraph keeps its punctuation at its own end.

public RunComposer LeftToRight()

Returns

RunComposer

Ligatures(bool)

Sets ligatures such as "fi" and "ffl", or not; they are on unless turned off.

public RunComposer Ligatures(bool value = true)

Parameters

value bool

Returns

RunComposer

OldstyleFigures(bool)

Sets old-style figures, which rise and descend like lowercase letters, where the face has them.

public RunComposer OldstyleFigures(bool value = true)

Parameters

value bool

Returns

RunComposer

Overline(bool)

Draws a line above the run.

public RunComposer Overline(bool value = true)

Parameters

value bool

Returns

RunComposer

PointSize(float)

public RunComposer PointSize(float size)

Parameters

size float

Returns

RunComposer

RightToLeft()

Reads the run right to left, set apart from the text around it: its words run from right to left even where they are written in a left-to-right script.

public RunComposer RightToLeft()

Returns

RunComposer

SmallCapitals(bool)

Sets lowercase letters as small capitals, where the face has them.

public RunComposer SmallCapitals(bool value = true)

Parameters

value bool

Returns

RunComposer

StrikeThrough(bool)

public RunComposer StrikeThrough(bool value = true)

Parameters

value bool

Returns

RunComposer

StrokeInk(Ink)

The ink of the run's underline, strike-through and overline, in place of the text's own.

public RunComposer StrokeInk(Ink ink)

Parameters

ink Ink

Returns

RunComposer

StrokeInk(string)

public RunComposer StrokeInk(string hex)

Parameters

hex string

Returns

RunComposer

StrokeStyle(StrokeStyle)

How the run's underline, strike-through and overline are drawn: solid, double, dotted, dashed or wavy.

public RunComposer StrokeStyle(StrokeStyle style)

Parameters

style StrokeStyle

Returns

RunComposer

StrokeWeight(float)

The weight of the run's underline, strike-through and overline, in points, in place of the font's own.

public RunComposer StrokeWeight(float weight)

Parameters

weight float

Returns

RunComposer

Style(Func<TypeStyle, TypeStyle>)

Applies an arbitrary style transformation.

public RunComposer Style(Func<TypeStyle, TypeStyle> refinement)

Parameters

refinement Func<TypeStyle, TypeStyle>

Returns

RunComposer

Style(string)

Sets the run in the document's type style named name.

public RunComposer Style(string name)

Parameters

name string

Returns

RunComposer

Subscript()

public RunComposer Subscript()

Returns

RunComposer

Superscript()

public RunComposer Superscript()

Returns

RunComposer

TabularFigures(bool)

Sets figures all one width, so columns of numbers align, where the face has them.

public RunComposer TabularFigures(bool value = true)

Parameters

value bool

Returns

RunComposer

Tracking(float)

public RunComposer Tracking(float spacing)

Parameters

spacing float

Returns

RunComposer

Typeface(string, params string[])

Sets the run in fontFamily, falling back to fallbacks, in order, for any character it lacks.

public RunComposer Typeface(string fontFamily, params string[] fallbacks)

Parameters

fontFamily string
fallbacks string[]

Returns

RunComposer

Underline(bool)

public RunComposer Underline(bool value = true)

Parameters

value bool

Returns

RunComposer

Weight(TypeWeight)

public RunComposer Weight(TypeWeight weight)

Parameters

weight TypeWeight

Returns

RunComposer

WordSpacing(float)

Adds space to each space between words, in points; negative tightens.

public RunComposer WordSpacing(float spacing)

Parameters

spacing float

Returns

RunComposer