Font

Font

This class provides information about the font used in the specified PDF file, such as font-name, font-family etc.

Methods

name() → {string}

Description:
  • Returns a string specifying the post-script name of the font - e.g. "YERPXC+MyriadPro-Regular" etc.

Returns:

The post-script name of the font.

Type
string

fontType() → {string}

Description:
  • Returns a string specifying the font technology type - e.g. "Type 1", "TrueType", "OpenType" etc.

Returns:

The font technology type.

Type
string

familyName() → {string}

Description:
  • Returns a string specifying font's family name - e.g. For font "Times Bold Italic", family name is "Times" etc.

Returns:

The font's family name.

Type
string