Method TryLoad
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
TryLoad(string, bool, bool, Stream)
Attempts to load font bytes by checking font files in the well-known system font folders.
public bool TryLoad(string familyName, bool bold, bool italic, Stream stream)Parameters
- familyNamestring
- Family name of the font to load. 
- boldbool
- Set to - truefor the bold font weight.
- italicbool
- Set to - truefor the italic font style.
- streamStream
- The stream to put font bytes to. 
Returns
- bool
- trueif the eligible font bytes were successfully saved to- stream; otherwise,- false.