Table of Contents

Method Load

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

Load(string, bool, bool)

Loads font bytes by checking the font files in the previously specified directories.

public byte[]? Load(string familyName, bool bold, bool italic)

Parameters

familyName string

Family name of the font to load by checking the font files in the previously specified directories.

bold bool

Set to true for the bold font weight.

italic bool

Set to true for the italic font style.

Returns

byte[]

The bytes of an eligible font loaded by checking the font files in the previously specified directories or null if an eligible font was not found.

Remarks

Read the Font loading in cloud environments for an example of using this type of font loaders.