PDF::Builder::Resource::CIDFont::TrueType(3) User Contributed Perl Documentation PDF::Builder::Resource::CIDFont::TrueType(3)

PDF::Builder::Resource::CIDFont::TrueType - TrueType font support

$font = PDF::Builder::Resource::CIDFont::TrueType->new($pdf, $file, %options)
Returns a font object.

Defined Options:

encode ... specify fonts encoding for non-UTF-8 text.
nosubset ... disables subsetting. Any value causes the full font to be
             embedded, rather than only the glyphs needed.

$font->fontfile()
Returns font file object (' ff' element), so its methods may be invoked.

$font->fontobj()
Returns font object, so its methods and properties may be used.

$font->wxByCId($gID)
Returns unscaled glyph width, given the glyph ID (CID).

$flag = $font->haveKernPairs()
Does the font include kerning data? Invokes fontfile's haveKernPairs(). Not clear what additional optional arguments are.

$flag = $font->kernPairCid($gID, $n)
Returns kerning information for? Not clear what additional arguments are. Invokes fontfile's kernPairCid() method.

$font->subsetByCid($gID)
Invokes subsetByCId() method from fontfile() to put the glyph into the embedded font cache in the PDF.

$font->subvec($gID)
(No Information) invokes fontfile's subvec() method.

$count = $font->glyphNum()
Number of glyphs in the font.

$font->outobjdeep()
(No Information) output to PDF
2023-12-21 perl v5.38.1