1PDF::Builder::Resource:U:sFeorntC:o:nBtdrFiobnutt(e3d)PPeDrFl::DBouciulmdeenrt:a:tRieosnource::Font::BdFont(3)
2
3
4
6 PDF::Builder::Resource::Font::BdFont - Module for using bitmapped
7 Fonts.
8
10 #
11 use PDF::Builder;
12 #
13 $pdf = PDF::Builder->new();
14 $sft = $pdf->bdfont($file);
15 #
16
17 This creates a bitmapped font from a .bdf (bitmap distribution font)
18 file. The default is to use square elements, and the style can be
19 changed to use filled dots (looking more like a dot-matrix printer).
20 The font will be embedded in the PDF file.
21
22 Bitmapped fonts are quite rough, low resolution, and difficult to read,
23 so unless you're a sadist who wants to force readers back to the good
24 old days of dot-matrix printers and bitmapped X terminals, try to limit
25 the use of such a font to decorative or novelty effects, such as
26 chapter titles and major headings. Have mercy on your readers and use a
27 real font (TrueType, etc.) for body text!
28
30 $font = PDF::Builder::Resource::Font::BdFont->new($pdf, $font,
31 %options)
32 Returns a BmpFont object.
33
34 Valid %options are:
35
36 style
37 A value of 'block' (default) assembles a character from
38 contiguous square blocks. A value of 'dot' assembles a
39 character from overlapping filled circles, in the style of a
40 dot matrix printer.
41
43 Alfred Reibenschuh, extensively rewritten by Phil Perry
44
45
46
47perl v5.38.0 2023-0P7D-F2:1:Builder::Resource::Font::BdFont(3)