Table of Contents

Class FontFamilyNotFoundException

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Exception for detailing missing font families.

public class FontFamilyNotFoundException : FontException, ISerializable
Inheritance
FontFamilyNotFoundException
Implements
Inherited Members

Constructors

FontFamilyNotFoundException(string)

Initializes a new instance of the FontFamilyNotFoundException class.

public FontFamilyNotFoundException(string family)

Parameters

family string

The name of the missing font family.

FontFamilyNotFoundException(string, IReadOnlyCollection<string>)

Initializes a new instance of the FontFamilyNotFoundException class.

public FontFamilyNotFoundException(string family, IReadOnlyCollection<string> searchDirectories)

Parameters

family string

The name of the missing font family.

searchDirectories IReadOnlyCollection<string>

The collection of directories that were searched for the font family. Pass an empty collection if font families were not searched in directories.

Properties

FontFamily

Gets the name of the font family that was not found.

public string FontFamily { get; }

Property Value

string

SearchDirectories

Gets the collection of directories that were unsuccessfully searched for the font family.

public IReadOnlyCollection<string> SearchDirectories { get; }

Property Value

IReadOnlyCollection<string>

Remarks

If the exception did not originate from the Collection then this property will be empty.

See Also