Class PdfFontCollection
Observable collection of fonts
Inheritance
System.Object
PdfFontCollection
Namespace: IronPdf.Fonts
Assembly: IronPdf.dll
Syntax
public class PdfFontCollection : ObservableCollection<PdfFont>
Properties
Item[String]
Find the first font with the specified font name
Declaration
public PdfFont this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Font name |
Property Value
Type | Description |
---|---|
PdfFont | Font with the specified name |
Methods
Add(Byte[])
Add a custom font by file
Declaration
public PdfFont Add(byte[] Data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | Data | Font data |
Returns
Type | Description |
---|---|
PdfFont |
Add(String)
Add a standard font by name
Declaration
public PdfFont Add(string Name)
Parameters
Type | Name | Description |
---|---|---|
System.String | Name | Standard font name |
Returns
Type | Description |
---|---|
PdfFont |
Find(String, Boolean)
Find the first font with the specified font name
Declaration
public PdfFont Find(string name, bool skipSubsetFonts = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Font name |
System.Boolean | skipSubsetFonts | Optional. Defaults to false. When true, subset fonts are excluded from the search |
Returns
Type | Description |
---|---|
PdfFont | Font with the specified name |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |