Table of Contents

Method FontLoader

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

FontLoader(IFontLoader)

Sets the font loader.

public PdfDocumentBuilder FontLoader(IFontLoader fontLoader)

Parameters

fontLoader IFontLoader

The font loader to use.

Returns

PdfDocumentBuilder

The updated builder.

Remarks

By default, the library uses the static instance of SystemFontLoader.

The library uses font loader to get font bytes in the TextStyleWithFont(SystemFont, FontEmbedMode?) method.

Exceptions

ArgumentNullException

fontLoader is null.