Class FontFaceSelectionEventArgs
Event arguments for the FontSelection event. Allows listeners to inspect or override the font face selected for rendering.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class FontFaceSelectionEventArgs : EventArgs
Constructors
FontFaceSelectionEventArgs(string, PdfFontStyle, PdfFontWeight)
Initializes event arguments for a font face selection request.
Declaration
public FontFaceSelectionEventArgs(string requestedFamily, PdfFontStyle requestedStyle, PdfFontWeight requestedWeight)
Parameters
| Type | Name | Description |
|---|---|---|
| string | requestedFamily | |
| PdfFontStyle | requestedStyle | |
| PdfFontWeight | requestedWeight |
Properties
RequestedFamily
Gets the font family name that was requested.
Declaration
public string RequestedFamily { get; }
Property Value
| Type | Description |
|---|---|
| string |
RequestedStyle
Gets the requested font style.
Declaration
public PdfFontStyle RequestedStyle { get; }
Property Value
| Type | Description |
|---|---|
| PdfFontStyle |
RequestedWeight
Gets the requested font weight.
Declaration
public PdfFontWeight RequestedWeight { get; }
Property Value
| Type | Description |
|---|---|
| PdfFontWeight |
ResolvedFace
Gets or sets the resolved font face to use. Set to override the default resolution.
Declaration
public FontFace? ResolvedFace { get; set; }
Property Value
| Type | Description |
|---|---|
| FontFace |