Class FontFamilyNotFoundException
Exception for detailing missing font families.
Implements
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public class FontFamilyNotFoundException : FontException, ISerializable
Constructors
| Edit this page View SourceFontFamilyNotFoundException(string)
Initializes a new instance of the FontFamilyNotFoundException class.
Declaration
public FontFamilyNotFoundException(string family)
Parameters
Type | Name | Description |
---|---|---|
string | family | The name of the missing font family. |
FontFamilyNotFoundException(string, IReadOnlyCollection<string>)
Initializes a new instance of the FontFamilyNotFoundException class.
Declaration
public FontFamilyNotFoundException(string family, IReadOnlyCollection<string> searchDirectories)
Parameters
Type | Name | Description |
---|---|---|
string | family | The name of the missing font family. |
IReadOnlyCollection<string> | searchDirectories | The collection of directories that were searched for the font family. Pass an empty collection if font families were not searched in directories. |
Properties
| Edit this page View SourceFontFamily
Gets the name of the font family that was not found.
Declaration
public string FontFamily { get; }
Property Value
Type | Description |
---|---|
string |
SearchDirectories
Gets the collection of directories that were unsuccessfully searched for the font family.
Declaration
public IReadOnlyCollection<string> SearchDirectories { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<string> |
Remarks
If the exception did not originate from the Collection then this property will be empty.