PDFsharp-net6

FontResolverInfo

Namespace: PdfSharp.Fonts

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

public class FontResolverInfo

Inheritance ObjectFontResolverInfo

Properties

FaceName

A name that uniquely identifies the font (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

Boolean

MustSimulateItalic

Indicates whether italic must be simulated.

public bool MustSimulateItalic { get; }

Property Value

Boolean

StyleSimulations

Gets the style simulation flags.

public XStyleSimulations StyleSimulations { get; }

Property Value

XStyleSimulations

Constructors

FontResolverInfo(String)

Initializes a new instance of the FontResolverInfo struct.

public FontResolverInfo(string faceName)

Parameters

faceName String
The name that uniquely identifies the fontface.

FontResolverInfo(String, Boolean, Boolean)

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 fontface.

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

mustSimulateItalic Boolean
Set to true to simulate italic when rendered.

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 fontface.

styleSimulations XStyleSimulations
The style simulation flags.