Click or drag to resize

PdfTrueTypeFont Class

Represents TrueType font.
Inheritance Hierarchy
System Object
Spire.Pdf.Graphics PdfFontBase
Spire.Pdf.Graphics PdfTrueTypeFont

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

The PdfTrueTypeFont type exposes the following members.

Constructors
Name Description
Public method PdfTrueTypeFont(Font)
Initializes a new instance of the PdfTrueTypeFont class
Public method PdfTrueTypeFont(Font, Boolean)
Initializes a new instance of the PdfTrueTypeFont class
Public method PdfTrueTypeFont(Font, Single)
Initializes a new instance of the PdfTrueTypeFont class
Public method PdfTrueTypeFont(String, Single)
Initializes a new instance of the PdfTrueTypeFont class
Public method PdfTrueTypeFont(PdfTrueTypeFont, Single)
Initializes a new instance of the PdfTrueTypeFont class
Public method PdfTrueTypeFont(Font, Single, Boolean)
Initializes a new instance of the PdfTrueTypeFont class
Public method PdfTrueTypeFont(String, Single, PdfFontStyle)
Initializes a new instance of the PdfTrueTypeFont class
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 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 .)
Public property Unicode
Gets a value indicating whether thisis unicode.
Top
Methods
Name Description
Protected method ApplyFormatSettings
Applies settings to the default line width.
(Inherited from PdfFontBase .)
Public method Dispose
Releases all resources used by the PdfTrueTypeFont
(Overrides PdfFontBase Dispose .)
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 (Overrides Object Finalize .)
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