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.
[Obsolete("This method will be removed in the next release of the library. Use the TryLoad method instead.")]
public byte[]? Load(string familyName, bool bold, bool italic)
Parameters
familyNamestringFamily name of the font to load by checking the font files in the previously specified directories.
boldboolSet to
truefor the bold font weight.italicboolSet to
truefor the italic font style.
Returns
- byte[]
The bytes of an eligible font loaded by checking the font files in the previously specified directories or
nullif an eligible font was not found.
Remarks
Read the Font loading in cloud environments for an example of using this type of font loaders.