Table of Contents

Method TryLoad

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

TryLoad(string, bool, bool, Stream)

Attempts to load font bytes from the operating system using GDI+ and the Font class.

public bool TryLoad(string familyName, bool bold, bool italic, Stream stream)

Parameters

familyName string

Family name of the font to load.

bold bool

Set to true for the bold font weight.

italic bool

Set to true for the italic font style.

stream Stream

The stream to put font bytes to.

Returns

bool

true if the eligible font bytes were successfully saved to stream; otherwise, false.

Exceptions

ArgumentNullException

familyName or stream is null.