Method AddFolder

Namespace
SoftZenPdf.Layout
Assembly
SoftZenPdf.dll

AddFolder(string, bool)

Registers every usable font in a folder (.ttf, .ttc and .otf files).

public int AddFolder(string folder, bool recursive = true)

Parameters

folder string

The folder to scan.

recursive bool

Whether to scan subfolders too.

Returns

int

How many fonts were registered. Files that cannot be read are skipped.