PdfDocumentBuilder.FontLoader Method

Sets the font loader.

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

Syntax

C#
public PdfDocumentBuilder FontLoader(
	IFontLoader fontLoader
)
VB
Public Function FontLoader ( 
	fontLoader As IFontLoader
) As PdfDocumentBuilder

Parameters

fontLoader
Type: BitMiracle.Docotic.Pdf.IFontLoader
The font loader to use.

Return Value

Type: PdfDocumentBuilder
The updated builder.

Exceptions

ExceptionCondition
ArgumentNullExceptionfontLoader is null.

Remarks

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

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

See Also