Skip to content

PdfTextStyle class

View as Markdown

Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack

How a span of text looks: font, size, paint and decorations.

public sealed record PdfTextStyle : IEquatable<PdfTextStyle>

Inheritance

object ← PdfTextStyle

Implements

IEquatable<PdfTextStyle>

How a span of text looks: font, size, paint and decorations.

public PdfTextStyle(PdfFont Font, double Size)

Font PdfFont

The font. Characters it lacks are looked up in Fallbacks.

Size double

Font size in points.

Fill of the glyphs, and of underlines and strikethroughs. Default black; null for outlines only.

public PdfBrush? Brush { get; init; }

PdfBrush?

Fonts tried, in order, for characters Font has no glyph for.

public IReadOnlyList<PdfFont> Fallbacks { get; init; }

IReadOnlyList<PdfFont>

The font.

public PdfFont Font { get; init; }

PdfFont

Extra space after every character, in points; may be negative.

public double LetterSpacing { get; init; }

double

Outline of the glyphs, or null.

public PdfPen? Pen { get; init; }

PdfPen?

Font size in points.

public double Size { get; init; }

double

Draws a line through the text.

public bool Strikethrough { get; init; }

bool

Draws a line under the text.

public bool Underline { get; init; }

bool

Extra space added to every space between words, in points.

public double WordSpacing { get; init; }

double