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
fontTrueTypeFontThe font.
familystringThe family name to use; defaults to the font's own.
boldbool?Whether it is the bold face; defaults to the font's own flags.
italicbool?Whether it is the italic face; defaults to the font's own flags.