Click or drag to resize

PdfFont Class

Represents a combination of a PdfFontFace and size used for drawing character glyphs.
Inheritance Hierarchy
SystemObject
  SautinSoft.Pdf.ContentPdfFont

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.11.10
Syntax
public sealed class PdfFont

The PdfFont type exposes the following members.

Constructors
 NameDescription
Public methodPdfFont(PdfFontFace, Double) Initializes a new instance of the PdfFont class from the specified font face and font size.
Public methodPdfFont(PdfFontFamily, Double) Initializes a new instance of the PdfFont class from the specified font family and font size.
Public methodPdfFont(String, Double) Initializes a new instance of the PdfFont class from the specified font face name and font size.
Top
Properties
 NameDescription
Public propertyFace Gets the PdfFontFace associated with this PdfFont.
Public propertySize Gets the size of this PdfFont.
Top
Methods
 NameDescription
Public methodMeasureString Measures the specified string when drawn with this font.
Public methodToString Returns a String that represents this PdfFont instance.
(Overrides ObjectToString)
Top
See Also