Link Search Menu Expand Document

Font Class

Represents a font in the PDF document.
Inheritance Hierarchy
SystemObject
Bytescout.PDFFont

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
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 (Inherited from Object.)
Protected methodFinalize (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 (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 (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also

Reference