logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PDF::FromHTML::Template::Container::Font - Specify the font used for TEXTBOX nodes

Affects

       The font used when rendering a TEXTBOX

Attributes

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

Author

Children

       None

Dependencies

       None

Inheritance

       PDF::FromHTML::Template::Container

Name

       PDF::FromHTML::Template::Container::Font - Specify the font used for TEXTBOX nodes

Node Name

       FONT

Note

       For backwards compatibility, 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>

See Also

perl v5.38.2                                       2024-07-28             PDF::FromHTML::...Container::Font(3pm)

Usage

         <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::FromHTML::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.)

See Also