I just figured it out. I found cases where the problem didn't occur, and
then worked backwards. It was because I was using a fractional point size
for my fonts.

When I first tried a fractional size (10.5pt) I had observed that the text
was coming out smaller and deduced the point size was being rounded down
to the nearest integer. I figured that was the end of it and left the font
sizes specified that way. Eventually, the fix would catch up with the
template, right?

However, the other *side effect* of having a real number point size for a
font is the massive problems with inline blocks and font styles that I
observed. That, and a margin jump.

Once I put the font size back to an integer, everything became "normal" -
though I still notice a very slight, almost imperceptible variation along
the right margin of justified text, the output is fine.

I have the beginnings of a picture in my head about what was going on
inside the renderer, but I won't bore the crowd with speculation. At any
rate, problem "solved."  :)

Thanks for your responses Jeremias.


On Tue, 26 Feb 2002, David Wood wrote:

> I'm actually using the PDF renderer. I've got the source and am hunting
> around now. If I have anything to say about it, this bug isn't going to
> last until Friday.
> Of course, anyone with knowledge of PDFRenderer who would like to comment
> on this bug is more than welcome... No answer to my post on the dev list,
> though.
> Also, if anyone is using the PDFRenderer with inline italic/bold text and
> is _not_ having this problem, I'd really like to hear from them too.
> -David
> On Tue, 26 Feb 2002, Jeremias Maerki wrote:
> > Are you using the PostScript Renderer? If yes, then I can only tell you,
> > it's on the tasklist. If you want to look into it yourself, look at
> > org.apache.fop.render.ps.PSRenderer.java.
> >
> > > I have a bunch of justified text. If I use
> > >
> > > <fo:inline font-style="italic">...</fo:inline>
> > >
> > > I get inconsistent and random-seeming gaps on either end of the inline
> > > block. These are often large and ugly and are impossible to miss.
> > >
> > > On every line where italics occur, the right margin is exceeded, as
> > > though the spurious space being added around the italics are not being
> > > taken into account during line breaking and justification calculations.
> > >
> > > Not being able to use italics is a big huge one. Is there a workaround for
> > > this? And if not, where should I look in the code to start fixing it?
> >
> > Cheers,
> > Jeremias Märki
> >
> > mailto:[EMAIL PROTECTED]
> >
> > Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
> > Fon +41 41 317 20 20 - Fax +41 41 317 20 29
> > Internet http://www.outline.ch
> >

Reply via email to