aboutsummaryrefslogtreecommitdiffstats
path: root/src/documentation/content/xdocs/faq.xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-03-06 08:21:06 +0000
committerJeremias Maerki <jeremias@apache.org>2008-03-06 08:21:06 +0000
commita50c4b9642d47a11f3fc288c2d714feeec69fd61 (patch)
tree700a6d3b479472ccd7e186fd1e02601fa87f161d /src/documentation/content/xdocs/faq.xml
parent77c8566a57472e33049c8e02dd753dd79944e2ad (diff)
downloadxmlgraphics-fop-a50c4b9642d47a11f3fc288c2d714feeec69fd61.tar.gz
xmlgraphics-fop-a50c4b9642d47a11f3fc288c2d714feeec69fd61.zip
Added some notes on getting the same output for PDF/PS and Java2D-based renderers.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@634187 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/content/xdocs/faq.xml')
-rw-r--r--src/documentation/content/xdocs/faq.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml
index d488a1f3c..a75cd41e0 100644
--- a/src/documentation/content/xdocs/faq.xml
+++ b/src/documentation/content/xdocs/faq.xml
@@ -645,6 +645,21 @@ Check the following:</p>
</p>
</answer>
</faq>
+ <faq id="pdf-ps-java2d-differences">
+ <question>Why is the output of Java2D/AWT-based renderers different than, for example, PDF or PS?</question>
+ <answer>
+ <p>
+ If you render the same document once to a PNG or TIFF and once into a PDF, the output
+ may not be the same, i.e. line breaks are different or lines may have different heights.
+ The reason for this: The Java2D-based renderers use the font subsystem of Java2D/AWT. The
+ PDF and PS renderers use FOP's own font subsystem which provides much better font metrics
+ than Java2D. These can lead to different layout decisions when the same document is
+ rendered with different renderers. An alternative approach to fix this problem might be
+ available but it hasn't been tested, yet. See also the
+ <link href="0.95/output.html#general-fonts">notes on fonts in the various output formats</link>.
+ </p>
+ </answer>
+ </faq>
</part>
<part id="part-embedding">
<title>Embedding FOP. Using FOP in a servlet.</title>