The character style of a run of text: font, size, fill colour, underline, strike-through, kerning and shaping. Immutable; the
With* methods return a changed copy. A bold or italic run is a run in a bold or italic font.
public sealed class TextStyle
ISO 32000-2 §9.3 (text state parameters: Tf selects the font and size) and §8.6.8 (the fill colour, set with the colour
operators, paints the glyphs of the default text rendering mode). Underline and strike-through are not text state: they are
filled rectangles (§8.5.3.3) drawn in the run's colour after the line's text object, as wide as the run on that line.
kind:method, kind:property, kind:ctor. Press Esc to clear.TextStyle(PdfCanvasFont, Double)Creates a style in font at fontSize points, in the default colour.ColorThe fill colour of the glyphs and decorations, or null for the default (black in DeviceGray).FontThe font.FontSizeThe font size in points.ShapingThe OpenType shaping of the run: script, language and features.StrikeThroughWhether a line is drawn through the run.UnderlineWhether a line is drawn under the run.WithColor(Nullable<PdfColor>)Returns a copy in another fill colour.WithFont(PdfCanvasFont)Returns a copy in another font (such as the bold of the same family).WithFontSize(Double)Returns a copy at another size.WithKerning(Boolean)Returns a copy with kerning on or off.WithShaping(TextShaping)Returns a copy with other OpenType shaping.WithStrikeThrough(Boolean)Returns a copy with or without a strike-through line.WithUnderline(Boolean)Returns a copy with or without an underline.