On 13/12/11 13:20, Rob Sargent wrote:
> I didn't mention that I'm developing on linux, in part because most
> users are on Windows and Macs.  I did mention that I'm running fop-1.0
> from code I downloaded about a year ago.  It's the official 1.0 release
> I believe. Certainly not from svn.
My bad; I'm blind.

> I'm just using the generate IF to get the size of a particular
> fop-table.  I use that value to dynamically size region-before or
> region-after.  Because I'm not using the IF to generate a pdf, I don't
> need to mimic.
OK, so you throw the IF output away, fine. You're still eventually
producing  a PDF (or some other output) via fop, right?

If you are, then unless you mimic the correct output format your sizing
calculations may be based on *incorrect* inputs, because the font
metrics fop is using for the IF you're doing your calculations on may be
different to the font metrics used in the output of the final document.

Imagine if you wanted to size a particular piece of text to a region, so
you produced intermediate format to get an idea of how big it was going
to be then tweaked your leading and font size so the text would fit.
What would happen if you used Helvetica Regular for the sizing
estimation, then actually typeset the PDF using Helvetica Light or
Helvetica Condensed Regular?

> And it's been a while but I'm pretty sure using mimic in
> my case just blows up.  Again, because I don't want to go past IF
> generation.
You can generate IF when mimicing a renderer then throw it away, no
problem. At least I can confirm that's true for the PDF renderer - and I
don't see how the ability to generate and work with area-tree IF would
be useful _without_ that capability, really.

--
Craig Ringer

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to