.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "PDF::Builder::Resource::Font::Postscript 3" .TH PDF::Builder::Resource::Font::Postscript 3 2026-02-08 "perl v5.42.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME PDF::Builder::Resource::Font::Postscript \- Support routines for using PostScript (Type 1) fonts .PP Inherits from PDF::Builder::Resource::Font .SH METHODS .IX Header "METHODS" .SS new .IX Subsection "new" .Vb 1 \& PDF::Builder::Resource::Font::Postscript\->new($pdf, $psfile, %opts) .Ve .Sp .RS 4 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. .Sp See "PS Fonts" in PDF::Builder::Docs for additional information. .Sp Valid \f(CW%opts\fR are: .IP encode 4 .IX Item "encode" Changes the encoding of the font from its default. Notice that the encoding (\fInot\fR the entire font\*(Aqs glyph list) is shown in a PDF object (record), listing 256 glyphs associated with this encoding (\fIand\fR that are available in this font). .IP afmfile 4 .IX Item "afmfile" Specifies the location of the \fIASCII\fR font metrics file (.afm). It may be used with either an ASCII (.pfa) or binary (.pfb) glyph file. .Sp \&\f(CW\*(C`afm_file\*(C'\fR is still accepted as an (older) \fBalternative\fR to \f(CW\*(C`afmfile\*(C'\fR. .IP pfmfile 4 .IX Item "pfmfile" Specifies the location of the \fIbinary\fR font metrics file (.pfm). It may be used with either an ASCII (.pfa) or binary (.pfb) glyph file. .Sp \&\f(CW\*(C`pfm_file\*(C'\fR is still accepted as an (older) \fBalternative\fR to \f(CW\*(C`pfmfile\*(C'\fR. .IP pdfname 4 .IX Item "pdfname" Changes the reference\-name of the font from its default. The reference\-name is normally generated automatically and can be retrieved via \f(CW$pdfname\fR=$font\->\fBname()\fR. .IP dokern 4 .IX Item "dokern" Enables kerning if data is available. .Sp \&\f(CW\*(C`kerning\*(C'\fR is still accepted as an (older) \fBalternative\fR to \f(CW\*(C`dokern\*(C'\fR. .RE .RS 4 .RE