Class for a font that is suitable for use with PDF document.

Inheritance Hierarchy

System.Object
  BitMiracle.Docotic.Pdf.PdfFont

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public sealed class PdfFont
VB
Public NotInheritable Class PdfFont

The PdfFont type exposes the following members.

Properties

  NameDescription
Public propertyAscent
Gets the font ascent, expressed in the glyph coordinate system.
Public propertyBold
Gets a value indicating whether this PdfFont is bold.
Public propertyDescent
Gets the font descent, expressed in the glyph coordinate system.
Public propertyEmbedded
Gets a value indicating whether this PdfFont is embedded into the document.
Public propertyFormat
Gets the format of the font.
Public propertyItalic
Gets a value indicating whether this PdfFont is italic.
Public propertyName
Gets the face name of the font.
Public propertyStrikeout
Gets or sets a value indicating whether this PdfFont specifies a horizontal line through the font.
Public propertySynthesizedBold
Gets or sets a value indicating whether a bold version of this PdfFont is synthesized when needed.
Public propertySynthesizedItalic
Gets or sets a value indicating whether an italic version of this PdfFont is synthesized when needed.
Public propertyTopSideBearing
Gets the vertical distance from the baseline to the top of the font bounding box, expressed in the glyph coordinate system.
Public propertyTransformationMatrix
Gets the transformation matrix used to map coordinates from this font's glyph coordinate system to canvas coordinate system.
Public propertyUnderline
Gets or sets a value indicating whether this PdfFont is underlined.

Methods

  NameDescription
Public methodEmbed
Tries to embed font bytes into the PDF file.
Public methodEquals (Inherited from Object.)
Public methodFixEncoding
Fixes PDF font encoding if possible.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRemoveUnusedGlyphs
Removes unused glyphs from the font.
Public methodSave(Stream)
Saves the font bytes to the specified stream.
Public methodSave(String)
Saves the font bytes to the file with specified name.
Public methodToString
Returns a String that represents this instance.
(Overrides Object.ToString().)
Public methodUnembed
Removes font bytes from the PDF file.

See Also