Click or drag to resize

PdfFont(PdfFontFamily, Double) Constructor

Initializes a new instance of the PdfFont class from the specified font family and font size.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.7.1
Syntax
public PdfFont(
	PdfFontFamily family,
	double size
)

Parameters

family  PdfFontFamily
The font family.
size  Double
The font size.
Exceptions
ExceptionCondition
ArgumentNullExceptionfamily cannot be .
ArgumentExceptionsize is either NaN, NegativeInfinity or PositiveInfinity.
ArgumentOutOfRangeExceptionsize is less than 0.
See Also