Re: Different page layout using pdf renderer or awt renderer

2003-02-17 Thread Jeremias Maerki
This happens because the two renderer use a different font source which
results in slightly different font metrics for the same fonts. This in
turn has consequences on the layout. There's currently nothing you can
do to get the same output other than by switching renderers. PDF and
PostScript, for example, should produce almost exactly the same output
because they can use the same font source. That's not possible with AWT.
It is even possible that different JDK version lead to different results
with the AWT renderer. Please be aware that the AWT renderer doesn't
directly support font embedding. Font embedding is done by the printer
driver of your operating system if it is enabled there.

On 17.02.2003 10:18:19 frederic.kieffer wrote:
> Rendering a document through the awtrenderer (sent directly to the printer)
> doesn't give me the same result than rendering the samep document throught
> the PDF renderer (PDF is generated in a servlet, then open in a browser
> window). 
> Both modules share the embedded fonts and xslt file.
> Any hints?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Different page layout using pdf renderer or awt renderer

2003-02-17 Thread frederic . kieffer
Thank you very much for your input.
Frédéric

-Message d'origine-
De: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Date: lundi 17 février 2003 11:53
À: [EMAIL PROTECTED]
Objet: Re: Different page layout using pdf renderer or awt renderer


This happens because the two renderer use a different font source which
results in slightly different font metrics for the same fonts. This in
turn has consequences on the layout. There's currently nothing you can
do to get the same output other than by switching renderers. PDF and
PostScript, for example, should produce almost exactly the same output
because they can use the same font source. That's not possible with AWT.
It is even possible that different JDK version lead to different results
with the AWT renderer. Please be aware that the AWT renderer doesn't
directly support font embedding. Font embedding is done by the printer
driver of your operating system if it is enabled there.

On 17.02.2003 10:18:19 frederic.kieffer wrote:
> Rendering a document through the awtrenderer (sent directly to the
printer)
> doesn't give me the same result than rendering the samep document throught
> the PDF renderer (PDF is generated in a servlet, then open in a browser
> window). 
> Both modules share the embedded fonts and xslt file.
> Any hints?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Different page layout using pdf renderer or awt renderer

2003-02-18 Thread Joop Vriend
Jeremias Maerki wrote:
This happens because the two renderer use a different font source which
results in slightly different font metrics for the same fonts. This in
turn has consequences on the layout. There's currently nothing you can
do to get the same output other than by switching renderers. PDF and
PostScript, for example, should produce almost exactly the same output
because they can use the same font source. That's not possible with AWT.
But PostScript output still has some limitations as pointed out at
http://xml.apache.org/fop/output.html#xpointer(/document[1]/body[1]/section[1]/section[4])
Indeed I have experienced differences in character spacing. Perhaps 
because we used *negative* letter-spacing, while on line 691 of the 
PSRenderer.java of the FOP 0.20.4 source, the check for letter-spacing 
is as follows:

if (area.getFontState().getLetterSpacing() > 0) ...
??

Joop Vriend.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]