Rechercher une page de manuel
Text::PDF::SFont.3pm
Langue: en
Version: 2006-09-09 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Text::PDF::SFont - PDF Standard inbuilt font resource object. Inherits from Text::PDF::DictMETHODS
Text::PDF::SFont->new($parent, $name, $pdfname)
Text::PDF::SFont->new($parent, $name, $pdfname)
Creates a new font object with given parent and name. The name must be from one of the core 14 base fonts included with PDF. These are:
Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique Symbol, ZapfDingbats
The $pdfname is the name that this particular font object will be referenced by throughout the PDF file. If you want to play silly games with naming, then you can write the code to do it!
All fonts in this system are full PDF objects.
BUGS
Currently no width support for Symbol or ZapfDingbats, I haven't got my head around the AFMs yet.MacExpertEncoding not supported yet (I don't have the width info for any of the fonts)
$f->width($text)
Returns the width of the text in em.
$f->trim($text, $len)
$f->trim($text, $len)
Trims the given text to the given length (in em) returning the trimmed text
$f->out_text($text)
Acknowledges the text to be output for subsetting purposes, etc.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre