Click or drag to resize

PdfFontBase Class

Represents the font.
Inheritance Hierarchy

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

The PdfFontBase type exposes the following members.

Constructors
Name Description
Protected method PdfFontBase(Single)
Initializes a new instance of theclass.
Protected method PdfFontBase(Single, PdfFontStyle)
Initializes a new instance of the class.
Top
Properties
Name Description
Public property Bold
Gets a value indicating whether thisis bold.
Public property Descent
Gets the descent of the font in points.
Public property Height
Gets the height of the font in points.
Public property Italic
Gets a value indicating whether thisis italic.
Public property Name
Gets the name.
Public property Size
Gets the size.
Public property Strikeout
Gets a value indicating whether thisis strikeout.
Public property Style
Gets the style information for this font.
Public property Underline
Gets a value indicating whether thisis underline.
Top
Methods
Name Description
Protected method ApplyFormatSettings
Applies settings to the default line width.
Public method Dispose
Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method EqualsToFont
Checks whether fonts are equals.
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
Returns char code in the font.
Protected method GetCharWidth
Returns width of the char.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetLineInFont
Returns line string in the font.
Protected method GetLineWidth
Returns width of the line.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method MeasureString(String)
Measures a string by using this font.
Public method MeasureString(String, PdfStringFormat)
Measures a string by using this font.
Public method MeasureString(String, SizeF)
Measures a string by using this font.
Public method MeasureString(String, Single)
Measures a string by using this font.
Public method MeasureString(String, SizeF, PdfStringFormat)
Measures a string by using this font.
Public method MeasureString(String, Single, PdfStringFormat)
Measures a string by using this font.
Public method MeasureString(String, PdfStringFormat, Int32 , Int32 )
Measures a string by using this font.
Public method MeasureString(String, SizeF, PdfStringFormat, Int32 , Int32 )
Measures a string by using this font.
Public method MeasureString(String, Single, PdfStringFormat, Int32 , Int32 )
Measures a string by using this font.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method SetStyle
Sets the style.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Protected field Static member s_syncObject
Synchronization object.
Top
See Also