PdfFont Class

Represents a font used to render text in a PDF document

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
C#
public sealed class PdfFont
Inheritance
Object    PdfFont

Properties

Ascent The ascent of the font in points at the size of the font: the distance from the baseline to the top of the line box of the font
BaseFont Gets the base font used to create this font
Color Gets the font color
Descent The descent of the font in points at the size of the font: the distance from the baseline to the bottom of the line box of the font, as a positive value
Size Gets the font size in points
Style Gets the font style flags

Methods

Create Creates a new font using the same base font with the specified size, style, and color
CreateWithColor Creates a new font using the same base font, size, and style with a different color
CreateWithSize Creates a new font using the same base font and color with a different size
CreateWithStyle Creates a new font using the same base font, size, and color with a different style
Equals
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetTextWidth Measures the width in points of a text written on one line with this font
GetType
(Inherited from Object)
ToString
(Inherited from Object)

See Also