Method GetFont

Namespace
SoftZenPdf.Layout
Assembly
SoftZenPdf.dll

GetFont(string?, bool, bool)

The font for a family list and style, as text would use it.

public PdfFont GetFont(string? families, bool bold = false, bool italic = false)

Parameters

families string

One family or a comma-separated list, as in CSS; null uses DefaultFamily.

bold bool

Whether bold is wanted.

italic bool

Whether italic is wanted.

Returns

PdfFont

The chosen font. If the family has no bold or italic face, its regular face.