Namespace: PdfSharp.Fonts
Describes the physical font that must be used to render a particular XFont.
public class FontResolverInfo
Inheritance Object → FontResolverInfo
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; }
Indicates whether bold must be simulated.
public bool MustSimulateBold { get; }
Indicates whether italic must be simulated.
public bool MustSimulateItalic { get; }
Gets the style simulation flags.
public XStyleSimulations StyleSimulations { get; }
Initializes a new instance of the FontResolverInfo struct.
public FontResolverInfo(string faceName)
faceName
String
The name that uniquely identifies the fontface.
Initializes a new instance of the FontResolverInfo struct.
public FontResolverInfo(string faceName, bool mustSimulateBold, bool mustSimulateItalic)
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.
Initializes a new instance of the FontResolverInfo struct.
public FontResolverInfo(string faceName, XStyleSimulations styleSimulations)
faceName
String
The name that uniquely identifies the fontface.
styleSimulations
XStyleSimulations
The style simulation flags.