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
familiesstringOne family or a comma-separated list, as in CSS; null uses DefaultFamily.
boldboolWhether bold is wanted.
italicboolWhether italic is wanted.
Returns
- PdfFont
The chosen font. If the family has no bold or italic face, its regular face.