SystemFontLoader Class

An implementation of the IFontLoader interface that loads font bytes from well-known system font folders.

Inheritance Hierarchy


Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)


public sealed class SystemFontLoader : IFontLoader
Public NotInheritable Class SystemFontLoader
	Implements IFontLoader

The SystemFontLoader type exposes the following members.


Public propertyDirectories
Exposes the enumerator for font directory names used by this loader.
Public propertyStatic memberInstance
Returns the only instance of the SystemFontLoader.


Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Loads font bytes.
Public methodReset
Resets the font loader. The loader will re-read all font folders on the next attempt to load a font.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)


On all platforms this class looks into the folder returned by the Environment.GetFolderPath(Environment.SpecialFolder.Fonts) call.

On macOS, Linux, and FreeBSD platforms this class also looks into some other well-known folders. Check Directories property to get the full collection of used paths.

See Also