PDF::Builder::Resource::Font::Postscript(3pm)

PDF::Builder::Resource::Font::Postscript3pm

Support routines for using postscript (type 1) fonts inherits from pdf::builder::resource::font

Methods

new

    PDF::Builder::Resource::Font::Postscript->new($pdf, $psfile, %opts)

Create an object for a PostScript font. Handles ASCII (.pfa), binary (.pfb), and T1 (.t1) font files, as well as ASCII (.afm) and binary (.pfm) metrics files.

See "PS Fonts" in PDF::Builder::Docs for additional information.

Valid %opts are:

encode

Changes the encoding of the font from its default. Notice that the encoding (not the entire font's glyph list) is shown in a PDF object (record), listing 256 glyphs associated with this encoding (and that are available in this font).

afmfile

Specifies the location of the ASCII font metrics file (.afm). It may be used with either an ASCII (.pfa) or binary (.pfb) glyph file.

"afm_file" is still accepted as an (older) alternative to "afmfile".

pfmfile

Specifies the location of the binary font metrics file (.pfm). It may be used with either an ASCII (.pfa) or binary (.pfb) glyph file.

"pfm_file" is still accepted as an (older) alternative to "pfmfile".

pdfname

Changes the reference-name of the font from its default. The reference-name is normally generated automatically and can be retrieved via $pdfname=$font->name().

dokern

Enables kerning if data is available.

"kerning" is still accepted as an (older) alternative to "dokern".

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From perl-pdf-builder 3.028-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.