PdfFont Class

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 propertyEncodingName
Gets the name of this font's encoding.
Public propertyFormat
Gets the format of the font.
Public propertyId
Gets the identifier of this font in this PdfDocument.
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 methodContainsGlyphsForText
Checks whether this font contains all glyphs required to draw the given text.
Public methodEmbed
Tries to embed font bytes into the PDF file.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object).)
Public methodFixEncoding
Fixes PDF font encoding if possible.
Public methodGetHashCode
Serves as a hash function for a this type.
(Overrides Object.GetHashCode().)
Public methodGetType (Inherited from Object.)
Public methodIsAvailableThroughLoader
Checks whether this font can be loaded using the current FontLoader.
Public methodIsBuiltIn
Checks whether this font is built-in Type1 font.
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.

Operators

  NameDescription
Public operatorStatic memberEquality
Determines whether the two specified objects are equal to each other.
Public operatorStatic memberInequality
Determines whether the two specified objects are not equal to each other.

See Also