Class FontResolverInfo
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
stringThe 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
stringThe name that uniquely identifies the font face.
styleSimulations
XStyleSimulationsThe 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
stringThe name that uniquely identifies the font face.
mustSimulateBold
boolSet to
true
to simulate bold when rendered. Not implemented and must be false.mustSimulateItalic
boolSet 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
MustSimulateBold
Indicates whether bold must be simulated.
public bool MustSimulateBold { get; }
Property Value
MustSimulateItalic
Indicates whether italic must be simulated.
public bool MustSimulateItalic { get; }
Property Value
StyleSimulations
Gets the style simulation flags.
public XStyleSimulations StyleSimulations { get; }