PDF::Template::Container::Font
To specify the font used for TEXTBOX nodes
- FACE - this is required. It must be a legal font face recognized by
PDFLib. (q.v. for more details)
- H - the point size of the font.
The font used when rendering a TEXTBOX
<font face="Times-Roman" h="8">
... Children will be rendered in 8-point TimesRoman font ...
</font>
Please note that not specifying a FONT tag will result in a PDFLib
error when the first TEXTBOX attempts to render. Since not all PDF documents
involve text, PDF::Template does not require a FONT tag.
(I might require a FONT tag if a TEXTBOX tag exists, but only
after the non- standard behavior of FONT is fixed. q.v. the NOTE below.)
For backwards compatability, a stand-alone FONT tag will be treated as if it is
the parent for all nodes until the end of the parent node. This behavior is
deprecated and will be removed in a future release.
<pagedef>
... Children here aren't affected by the FONT tag below ...
<font face="Times-Roman" h="8"/>
... Children here _ARE_ affected by the FONT tag above ...
</pagedef>
Rob Kinyon (rob.kinyon@gmail.com)
Hey! The above document had some coding errors, which are explained
below:
- Around line 117:
- =back doesn't take any parameters, but you said =back 4