PDF::Bu...:BdFont(3)
PDF::Builder::Resource::Font::BdFont π
okay bestie, welcome to the User Contributed Perl Documentation corner of the internet, pls pull up a chair π
β¨ NAME β¨
PDF::Builder::Resource::Font::BdFont β the module for using bitmapped Fonts πΌοΈ
Also, lowkey important: it inherits from PDF::Builder::Resource::Font π
πΈ SYNOPSIS πΈ
#
use PDF::Builder;
#
$pdf = PDF::Builder->new();
$sft = $pdf->bdfont($file);
#
π¦ DESCRIPTION π¦
So what's the vibe here? This bad boy creates a bitmapped font from a .bdf file β that's a bitmap distribution font file, iykyk πΌ
By default it uses square elements, but you can switch the style to use filled dots instead, which is giving very much dot-matrix printer energy. Either way, the font gets embedded in the PDF file β¨
β οΈ now real talk bestie: bitmapped fonts are quite rough, low resolution, and difficult to read. So unless you're a sadist who wants to force readers back to the good old days of dot-matrix printers and bitmapped X terminals, try to limit the use of such a font to decorative or novelty effects, such as chapter titles and major headings. Have mercy on your readers and use a real font (TrueType, etc.) for body text! ππ
π METHODS π
π new
$font = PDF::Builder::Resource::Font::BdFont->new($pdf, $font, %opts)
Returns a BmpFont object π«Ά
Valid options (%opts) are:
styleβ a value of'block'(the default) assembles a character from contiguous square blocks β¬β¬β¬. A value of'dot'assembles a character from overlapping filled circles, in the style of a dot matrix printer π΄π΄π΄
π AUTHOR π
Alfred Reibenschuh, extensively rewritten by Phil Perry π
perl v5.42.0 Β· 2026-01-17 β that's the source/version + date tea bestie, mwah, go forth and be kind to your readers' eyeballs ππ§β
π¦ where this page comes from
- fedora 44: perl-PDF-Builder 3.028-2.fc44 Β· LGPL-2.1-or-later AND LGPL-2.1-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms