Table of Contents

Class FontResolverInfo

Namespace
PdfSharp.Fonts
Assembly
PdfSharp.dll

Describes the physical font that must be used to render a particular XFont.

public class FontResolverInfo
Inheritance
FontResolverInfo
Inherited Members

Constructors

FontResolverInfo(string)

Initializes a new instance of the FontResolverInfo struct.

public FontResolverInfo(string faceName)

Parameters

faceName string

The name that uniquely identifies the font face.

FontResolverInfo(string, XStyleSimulations)

Initializes a new instance of the FontResolverInfo struct.

public FontResolverInfo(string faceName, XStyleSimulations styleSimulations)

Parameters

faceName string

The name that uniquely identifies the font face.

styleSimulations XStyleSimulations

The style simulation flags.

FontResolverInfo(string, bool, bool)

Initializes a new instance of the FontResolverInfo struct.

public FontResolverInfo(string faceName, bool mustSimulateBold, bool mustSimulateItalic)

Parameters

faceName string

The name that uniquely identifies the font face.

mustSimulateBold bool

Set to true to simulate bold when rendered. Not implemented and must be false.

mustSimulateItalic bool

Set to true to simulate italic when rendered.

Properties

FaceName

A name that uniquely identifies the font face (not the family), e.g. the file name of the font. PDFsharp does not use this name internally, but passes it to the GetFont function of the IFontResolver interface to retrieve the font data.

public string FaceName { get; }

Property Value

string

MustSimulateBold

Indicates whether bold must be simulated.

public bool MustSimulateBold { get; }

Property Value

bool

MustSimulateItalic

Indicates whether italic must be simulated.

public bool MustSimulateItalic { get; }

Property Value

bool

StyleSimulations

Gets the style simulation flags.

public XStyleSimulations StyleSimulations { get; }

Property Value

XStyleSimulations