Table of Contents

Constructor XFont

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

XFont(string, double)

Initializes a new instance of the XFont class.

public XFont(string familyName, double emSize)

Parameters

familyName string

Name of the font family.

emSize double

The em size.

XFont(string, double, XFontStyleEx)

Initializes a new instance of the XFont class.

public XFont(string familyName, double emSize, XFontStyleEx style)

Parameters

familyName string

Name of the font family.

emSize double

The em size.

style XFontStyleEx

The font style.

XFont(string, double, XFontStyleEx, XPdfFontOptions)

Initializes a new instance of the XFont class.

public XFont(string familyName, double emSize, XFontStyleEx style, XPdfFontOptions pdfOptions)

Parameters

familyName string

Name of the font family.

emSize double

The em size.

style XFontStyleEx

The font style.

pdfOptions XPdfFontOptions

Additional PDF options.

XFont(string, double, XFontStyle, XFontWeight, XFontStretch, XPdfFontOptions?, XStyleSimulations?)

Initializes a new instance of the XFont class. Not yet implemented.

[Obsolete("Not yet implemented.")]
public XFont(string familyName, double emSize, XFontStyle style, XFontWeight weight, XFontStretch fontStretch, XPdfFontOptions? pdfOptions = null, XStyleSimulations? styleSimulations = null)

Parameters

familyName string

Name of the family.

emSize double

The em size.

style XFontStyle

The style.

weight XFontWeight

The weight.

fontStretch XFontStretch

The font stretch.

pdfOptions XPdfFontOptions

The PDF options.

styleSimulations XStyleSimulations?

The style simulations.

Exceptions

NotImplementedException

XFont

XFont(XTypeface, double, XPdfFontOptions?, XStyleSimulations?)

Initializes a new instance of the XFont class. Not yet implemented.

[Obsolete("Not yet implemented.")]
public XFont(XTypeface typeface, double emSize, XPdfFontOptions? pdfOptions = null, XStyleSimulations? styleSimulations = null)

Parameters

typeface XTypeface

The typeface.

emSize double

The em size.

pdfOptions XPdfFontOptions

The PDF options.

styleSimulations XStyleSimulations?

The style simulations.

Exceptions

NotImplementedException

XFont

XFont(XGlyphTypeface, double, XPdfFontOptions?, XStyleSimulations?)

Initializes a new instance of the XFont class. Not yet implemented.

public XFont(XGlyphTypeface glyphTypeface, double emSize, XPdfFontOptions? pdfOptions = null, XStyleSimulations? styleSimulations = null)

Parameters

glyphTypeface XGlyphTypeface

The typeface.

emSize double

The em size.

pdfOptions XPdfFontOptions

The PDF options.

styleSimulations XStyleSimulations?

The style simulations.