Font ClassByteScout PDF SDK
Represents a font in the PDF document.
Inheritance Hierarchy

SystemObject
  Bytescout.PDFFont

Namespace:  Bytescout.PDF
Assembly:  Bytescout.PDF (in Bytescout.PDF.dll) Version: 1.9.9.374-local
Syntax

public class Font

The Font type exposes the following members.

Constructors

  NameDescription
Public methodFont(String, Single)
Initializes a new Bytescout.PDF.Font using a specified properties.
Public methodFont(StandardFonts, Single)
Initializes a new instance of the standard font with specified properties.
Public methodFont(StandardFonts, Single, Boolean, Boolean)
Initializes a new instance of the standard font with specified properties.
Public methodFont(String, Single, Boolean, Boolean, Boolean, Boolean)
Initializes a new Bytescout.PDF.Font using a specified properties.
Top
Properties

  NameDescription
Public propertyBold
Gets a value indicating whether this Bytescout.PDF.Font is bold.
Public propertyItalic
Gets a value indicating whether this Bytescout.PDF.Font is italic.
Public propertyName
Gets the name of the font.
Public propertySize
Gets or sets the em-size of this Bytescout.PDF.Font.
Public propertyStrikeout
Gets or sets a value indicating whether this Bytescout.PDF.Font specifies a horizontal line through the font.
Public propertyUnderline
Gets or sets a value indicating whether this Bytescout.PDF.Font is underlined.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromFile(String, Single)
Creates a Bytescout.PDF.Font from the specified file.
Public methodStatic memberFromFile(String, Single, Boolean, Boolean)
Creates a Bytescout.PDF.Font from the specified file.
Public methodStatic memberFromStream(Stream, Single)
Creates a Bytescout.PDF.Font from the specified data stream.
Public methodStatic memberFromStream(Stream, Single, Boolean, Boolean)
Creates a Bytescout.PDF.Font from the specified data stream.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetTextHeight
Get the height of a string in pixels.
Public methodGetTextWidth
Get the width in pixels of the specified string.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference