The cat has too much spirit to have no heart.
— Ernest Menaul
PDF::Builder::Resource::CIDFont::TrueType - TrueType font support
Inherits from PDF::Builder::Resource::CIDFont
Generally also usable for OTF (Open Type) fonts
$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
Master Index
PDF::Builder -- Facilitates the creation and modification of PDF files
PDF::Builder::Resource -- Base class for PDF resources
PDF::Builder::Resource::CIDFont -- Base class for CID fonts
PDF::Builder::Resource::CIDFont::CJKFont -- Base class for CJK fonts
PDF::Builder::Resource::CIDFont::TrueType::FontFile -- Additional code support for TT font files
All content © copyright 2005 – 2025
by Catskill Technology Services, LLC.
All rights reserved.
Note that Third Party software (whether Open Source or proprietary) on this
site remains under the copyright and license of its owners.
Catskill Technology Services, LLC does not claim copyright over such software.
This page is https://www.catskilltech.com/Documentation/PDF/Builder/Resource/CIDFont/TrueType.html
Search Quotations database.
Last updated Sat, 09 Dec 2023 at 10:59 PM