Click or drag to resize

PdfFont(String, Double) Constructor

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

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

Parameters

name  String
The font face name.
size  Double
The font size.
Exceptions
ExceptionCondition
ArgumentNullExceptionname cannot be .
ArgumentExceptionsize is either NaN, NegativeInfinity or PositiveInfinity.
ArgumentOutOfRangeExceptionsize is less than 0.
See Also