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
IFontLoaderThe 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
isnull
.