Table of Contents

Interface IFallbackFontProvider

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Defines method used to load a fallback font for a given font description.

public interface IFallbackFontProvider

Remarks

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.

The Docotic.Pdf Library Documentation page contains links to articles, guides, and sample code.

Methods

GetFallbackFontFile(PdfFontInfo)

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