Table of Contents

Class XTypeface

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Represents a combination of XFontFamily, XFontWeight, XFontStyleEx, and XFontStretch.

public class XTypeface
Inheritance
object
XTypeface

Constructors

XTypeface(XFontFamily, XFontStyle, XFontWeight, XFontStretch)

Initializes a new instance of the XTypeface class.

XTypeface(string)

Initializes a new instance of the XTypeface class.

Properties

Family

Gets the font family from which the typeface was constructed.

Stretch

Gets the stretch value for the Typeface. The stretch value determines whether a typeface is expanded or condensed when it is displayed.

Style

Gets the style of the Typeface.

Weight

Gets the relative weight of the typeface.

Methods

TryGetGlyphTypeface(out XGlyphTypeface?)

Tries the get GlyphTypeface that corresponds to the Typeface.