IFallbackFontProvider Interface

Docotic.Pdf library help > BitMiracle.Docotic.Pdf > IFallbackFontProvider Interface
Defines method used to load a fallback font for a given font description.

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


public interface IFallbackFontProvider
Public Interface IFallbackFontProvider

The IFallbackFontProvider type exposes the following members.


Public methodGetFallbackFontFile
Provides fallback font bytes for a non-embedded PDF font.


PDF documents can reference fonts that are not embedded in the document. The library uses IFontLoader to load bytes for non-embedded fonts. Sometimes IFontLoader cannot load appropriate bytes. For example, when the corresponding font is not installed in the system. In such cases, the library requests fallback font bytes using this interface.

You can create a custom fallback font provider by implementing this interface. By default, the library uses DefaultFallbackFontProvider class to load fallback fonts.

A custom provider might be useful for PDF documents with non-embedded CJK fonts. Your implementation of IFallbackFontProvider can use CJK or Pan-CJK fonts with an appropriate license from this list.

See Also