NAME
PDF::Builder::Resource::CIDFont::TrueType - TrueType font support
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