You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/11/09 15:31:28 UTC
DO NOT REPLY [Bug 4767] New: -
SVG text is distored in PDF output
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4767>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4767
SVG text is distored in PDF output
Summary: SVG text is distored in PDF output
Product: Fop
Version: 0.15
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: pdf renderer
AssignedTo: fop-dev@xml.apache.org
ReportedBy: spam_from_apache_bugzilla@chezphil.org
This example shows strangely distored text in the PDF output, but
works correctly for -awt. Works when scaled, suggesting weird
rounding-to-integer problem?
FOP 0.20.2-RC.
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="25mm" margin-left="25mm"
margin-bottom="20mm" margin-top="15mm"
page-height="297mm" page-width="210mm"
master-name="a4">
<fo:region-before extent="10mm"/>
<fo:region-after extent="10mm"/>
<fo:region-body margin-bottom="15mm" margin-top="15mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="a4">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:instream-foreign-object>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg"
fill="none" width="5cm" height="1cm"
viewBox="0 0 5.0 1.0"
preserveAspectRatio="xMidYMid meet"
contentScriptType="text/ecmascript"
contentStyleType="text/css">
<svg:text fill="#000000" text-anchor="start" font-size="0.3"
x="0.1" y="0.2">x1: Hello World</svg:text>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
<fo:block>
<fo:instream-foreign-object>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg"
fill="none" width="5cm" height="1cm"
viewBox="0 0 50.0 10.0"
preserveAspectRatio="xMidYMid meet"
contentScriptType="text/ecmascript"
contentStyleType="text/css">
<svg:g transform="scale(10.0)">
<svg:text fill="#000000" text-anchor="start" font-size="0.3"
x="0.1" y="0.2">x10: Hello World</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
<fo:block>
<fo:instream-foreign-object>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg"
fill="none" width="5cm" height="1cm"
viewBox="0 0 500 100"
preserveAspectRatio="xMidYMid meet"
contentScriptType="text/ecmascript"
contentStyleType="text/css">
<svg:g transform="scale(100)">
<svg:text fill="#000000" text-anchor="start" font-size="0.3"
x="0.1" y="0.2">x100: Hello World</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
<fo:instream-foreign-object>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg"
fill="none" width="5cm" height="1cm"
viewBox="0 0 5000 1000"
preserveAspectRatio="xMidYMid meet"
contentScriptType="text/ecmascript"
contentStyleType="text/css">
<svg:g transform="scale(1000)">
<svg:text fill="#000000" text-anchor="start" font-size="0.3"
x="0.1" y="0.2">x1000: Hello World</svg:text>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org