Table of Contents

Method Load

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

Load(string, bool, bool)

Loads font bytes from the operating system using GDI+ and the Font class.

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

Parameters

familyName string

Family name of the font to load from the operating system using GDI+ and the Font class.

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 from the operating system using GDI+ and the Font class or null if an eligible font was not found.