PdfFont Class
Represents a combination of a PdfFontFace and size used for drawing character glyphs.
- Inheritance:
- PdfFont
Constructors
PdfFont(PdfFontFace, Double)
Initializes a new instance of the PdfFont class from the specified font face and font size.
public PdfFont(PdfFontFace face, double size)
Public Sub New(face As PdfFontFace, size As Double)
Parameters
face
- PdfFontFace
The font face.
size
- Double
The font size.
Exceptions
face
cannot be null.
- System.ArgumentOutOfRangeException
size
is less than 0.
size
is either NaN, NegativeInfinity or PositiveInfinity.
PdfFont(PdfFontFamily, Double)
Initializes a new instance of the PdfFont class from the specified font family and font size.
public PdfFont(PdfFontFamily family, double size)
Public Sub New(family As PdfFontFamily, size As Double)
Parameters
family
- PdfFontFamily
The font family.
size
- Double
The font size.
Exceptions
family
cannot be null.
size
is either NaN, NegativeInfinity or PositiveInfinity.
- System.ArgumentOutOfRangeException
size
is less than 0.
PdfFont(String, Double)
Initializes a new instance of the PdfFont class from the specified font face name and font size.
Parameters
name
- String
The font face name.
size
- Double
The font size.
Exceptions
name
cannot be null.
size
is either NaN, NegativeInfinity or PositiveInfinity.
- System.ArgumentOutOfRangeException
size
is less than 0.
Properties
Face
Gets the PdfFontFace associated with this PdfFont.
Property Value
The PdfFontFace associated with this PdfFont.
Size
Gets the size of this PdfFont.
Property Value
Methods
ToString()
Returns
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).