Click or drag to resize

PdfFont Class

Represents one of the 14 standard PDF fonts.
Inheritance Hierarchy
System Object
Spire.Pdf.Graphics PdfFontBase
Spire.Pdf.Graphics PdfFont

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfFont : PdfFontBase

The PdfFont type exposes the following members.

Constructors
Name Description
Public method PdfFont(PdfFont, Single)
Initializes a new instance of theclass.
Public method PdfFont(PdfFontFamily, Single)
Initializes a new instance of theclass.
Public method PdfFont(PdfFont, Single, PdfFontStyle)
Initializes a new instance of theclass.
Public method PdfFont(PdfFontFamily, Single, PdfFontStyle)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property Bold
Gets a value indicating whether thisis bold.
(Inherited from PdfFontBase .)
Public property Descent
Gets the descent of the font in points.
(Inherited from PdfFontBase .)
Public property FontFamily
Gets the FontFamily.
Public property Height
Gets the height of the font in points.
(Inherited from PdfFontBase .)
Public property Italic
Gets a value indicating whether thisis italic.
(Inherited from PdfFontBase .)
Public property Name
Gets the name.
(Inherited from PdfFontBase .)
Public property Size
Gets the size.
(Inherited from PdfFontBase .)
Public property Strikeout
Gets a value indicating whether thisis strikeout.
(Inherited from PdfFontBase .)
Public property Style
Gets the style information for this font.
(Inherited from PdfFontBase .)
Public property Underline
Gets a value indicating whether thisis underline.
(Inherited from PdfFontBase .)
Top
Methods
Name Description
Protected method ApplyFormatSettings
Applies settings to the default line width.
(Inherited from PdfFontBase .)
Public method Dispose
Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
(Inherited from PdfFontBase .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method EqualsToFont (Overrides PdfFontBase EqualsToFont(PdfFontBase) .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Protected method GetCharCodeInFont (Overrides PdfFontBase GetCharCodeInFont(Char) .)
Protected method GetCharWidth (Overrides PdfFontBase GetCharWidth(Char, PdfStringFormat) .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetLineInFont (Overrides PdfFontBase GetLineInFont(String) .)
Protected method GetLineWidth (Overrides PdfFontBase GetLineWidth(String, PdfStringFormat) .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method MeasureString(String)
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, PdfStringFormat)
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, SizeF)
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, Single)
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, SizeF, PdfStringFormat)
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, Single, PdfStringFormat)
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, PdfStringFormat, Int32 , Int32 )
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, SizeF, PdfStringFormat, Int32 , Int32 )
Measures a string by using this font.
(Inherited from PdfFontBase .)
Public method MeasureString(String, Single, PdfStringFormat, Int32 , Int32 )
Measures a string by using this font.
(Inherited from PdfFontBase .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method SetStyle
Sets the style.
(Inherited from PdfFontBase .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also