On Mon, 2009-07-06 at 12:38 -0500, Jay Hannah wrote:
> Sure, it does any font you have the font file for -- bold, italic, underlined,
color changes, size, whatever. <i> is whatever font file you assign to <i>.
>
> No, PDF::TextBlock doesn't do nesting. If you want three fonts (1) bold (2)
italic (3) bold AND italic; then you have to define 3 tags for that, and use
them one at a time.
>
> PDF::TextBlock does justify, fulljustify, left, and right.
>
> Patches welcome! :)
>
> j
This is not clear in the documentation. For example, how do I specify
two different sizes?
BTW, what you call a font is not a font; it's a typeface. This started
with Adobe and has perpetuated since. A font has a typeface and a size.
This is because if you print a typeface at 72 pt and at 6 pt and blew up
the 6 pt until it's the same height as the 72 pt, you would notice that
the strokes on the 72 pt are narrower than the 6 pt one. This is to
make it more pleasing to look at.
The problem is that PDF::API2 associates a typeface object with the pdf
one and the font object with the text object. It is not clear in the
documentation on how to access the text object so that different sizes
may be used.
BTW, lead is named after the metal lead, atomic symbol Pb, and is the
distance, in points, between the baselines. At one time it was the size
of the lead spacers used to separate the rows of type in the block.
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.