CTS logo
hazy blue Catskill Mountains in distance

A Thought…

The cat has too much spirit to have no heart.

   — Ernest Menaul

NAME

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

Inherits from PDF::Builder::Resource::CIDFont

Generally also usable for OTF (Open Type) fonts

METHODS

new

    $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.

fontfile

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

fontobj

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

wxByCId

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

haveKernPairs

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

kernPairCid

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

subsetByCid

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

subvec

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

glyphNum

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

outobjdeep

    $font->outobjdeep()
(No Information) output to PDF

NAVIGATION LINKS

Up (Parents)

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

Siblings

PDF::Builder::Resource::CIDFont::CJKFont -- Base class for CJK fonts

Down (Children)

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

Valid HTML 5

Mon, 13 Jan 2025 at 4:22 AM EST