Method Add

Namespace
SoftZenPdf.Layout
Assembly
SoftZenPdf.dll

Add(TrueTypeFont, string?, bool?, bool?)

Registers a loaded font under its own family name (or family), as its bold and italic style.

public void Add(TrueTypeFont font, string? family = null, bool? bold = null, bool? italic = null)

Parameters

font TrueTypeFont

The font.

family string

The family name to use; defaults to the font's own.

bold bool?

Whether it is the bold face; defaults to the font's own flags.

italic bool?

Whether it is the italic face; defaults to the font's own flags.