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
BreakAnywhere(bool)
Lets lines break between any two characters of the run, not only between words.
public RunComposer BreakAnywhere(bool value = true)
Parameters
valuebool
Returns
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
Returns
Highlight(Ink)
public RunComposer Highlight(Ink ink)
Parameters
inkInk
Returns
Highlight(string)
public RunComposer Highlight(string hex)
Parameters
hexstring
Returns
Ink(Ink)
public RunComposer Ink(Ink ink)
Parameters
inkInk
Returns
Ink(string)
public RunComposer Ink(string hex)
Parameters
hexstring
Returns
Italic(bool)
public RunComposer Italic(bool value = true)
Parameters
valuebool
Returns
Leading(float)
public RunComposer Leading(float multiplier)
Parameters
multiplierfloat
Returns
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
Ligatures(bool)
Sets ligatures such as "fi" and "ffl", or not; they are on unless turned off.
public RunComposer Ligatures(bool value = true)
Parameters
valuebool
Returns
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
valuebool
Returns
Overline(bool)
Draws a line above the run.
public RunComposer Overline(bool value = true)
Parameters
valuebool
Returns
PointSize(float)
public RunComposer PointSize(float size)
Parameters
sizefloat
Returns
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
SmallCapitals(bool)
Sets lowercase letters as small capitals, where the face has them.
public RunComposer SmallCapitals(bool value = true)
Parameters
valuebool
Returns
StrikeThrough(bool)
public RunComposer StrikeThrough(bool value = true)
Parameters
valuebool
Returns
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
inkInk
Returns
StrokeInk(string)
public RunComposer StrokeInk(string hex)
Parameters
hexstring
Returns
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
styleStrokeStyle
Returns
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
weightfloat
Returns
Style(Func<TypeStyle, TypeStyle>)
Applies an arbitrary style transformation.
public RunComposer Style(Func<TypeStyle, TypeStyle> refinement)
Parameters
Returns
Style(string)
Sets the run in the document's type style named name.
public RunComposer Style(string name)
Parameters
namestring
Returns
Subscript()
public RunComposer Subscript()
Returns
Superscript()
public RunComposer Superscript()
Returns
TabularFigures(bool)
Sets figures all one width, so columns of numbers align, where the face has them.
public RunComposer TabularFigures(bool value = true)
Parameters
valuebool
Returns
Tracking(float)
public RunComposer Tracking(float spacing)
Parameters
spacingfloat
Returns
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
Returns
Underline(bool)
public RunComposer Underline(bool value = true)
Parameters
valuebool
Returns
Weight(TypeWeight)
public RunComposer Weight(TypeWeight weight)
Parameters
weightTypeWeight
Returns
WordSpacing(float)
Adds space to each space between words, in points; negative tightens.
public RunComposer WordSpacing(float spacing)
Parameters
spacingfloat