Method AddFile

Namespace
SoftZenPdf.Layout
Assembly
SoftZenPdf.dll

AddFile(string)

Registers every font of a font file (each font of a .ttc collection). Fonts are loaded when first used.

public int AddFile(string path)

Parameters

path string

A .ttf, .ttc or .otf file.

Returns

int

How many fonts were registered; fonts with CFF outlines or a licence that forbids embedding are skipped.