Table of Contents

Class PdfFont

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

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

public sealed class PdfFont
Inheritance
PdfFont
Inherited Members

Properties

Ascent

Gets the font ascent, expressed in the glyph coordinate system.

Bold

Gets a value indicating whether this PdfFont is bold.

Descent

Gets the font descent, expressed in the glyph coordinate system.

Embedded

Gets a value indicating whether this PdfFont is embedded into the document.

EncodingName

Gets the name of this font's encoding.

Format

Gets the format of this PdfFont font.

Id

Gets the identifier of this font in this PdfDocument.

Italic

Gets a value indicating whether this PdfFont is italic.

Name

Gets the face name of this PdfFont font.

Strikeout

Gets or sets a value indicating whether this PdfFont specifies a horizontal line through the font.

SynthesizedBold

Gets or sets a value indicating whether a bold version of this PdfFont is synthesized when needed.

SynthesizedItalic

Gets or sets a value indicating whether an italic version of this PdfFont is synthesized when needed.

TopSideBearing

Gets the vertical distance from the baseline to the top of the font bounding box, expressed in the glyph coordinate system.

TransformationMatrix

Gets the transformation matrix used to map coordinates from this font's glyph coordinate system to canvas coordinate system.

Underline

Gets or sets a value indicating whether this PdfFont is underlined.

Methods

ContainsGlyphsForText(string)

Checks whether this font contains all glyphs required to draw the given text.

Embed()

Tries to embed font bytes into the PDF file.

Equals(object)

Determines whether the specified object is equal to the current PdfFont object.

FixEncoding()

Fixes PDF font encoding if possible.

GetHashCode()

Serves as a hash function for a PdfFont instance.

IsAvailableThroughLoader()

Checks whether this font can be loaded using the current FontLoader.

IsBuiltIn()

Checks whether this font is built-in Type1 font.

RemoveUnusedGlyphs()

Removes unused glyphs from the font.

Save(Stream)

Saves the font bytes to the specified stream.

Save(string)

Saves the font bytes to the file with specified name.

ToString()

Returns a string that represents this PdfFont instance.

Unembed()

Removes font bytes from the PDF file.

Operators

operator ==(PdfFont, PdfFont)

Determines whether the two specified objects are equal to each other.

operator !=(PdfFont, PdfFont)

Determines whether the two specified objects are not equal to each other.