You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Debasish Jana <de...@anshinsoft.com> on 2006/05/25 14:44:16 UTC
FOP 0.92: SVG Rendering problem to PDF
Hi:
I am having a problem in rendering a SVG, We used SVGGraphics2D for the
following SVG (within ------ block), marked below. While trying to render
using FOP0.92 Beta, it is not showing up the pie chart in the rendered PDF.
The SVG is however being opened by any other SVG viewer e.g. a web browser.
We tried with alternate simplified SVG to render to PDF. That worked. Can
you please suggest any workaround?
Many thanks in advance,
Regards,
Debasish Jana
--------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
<svg fill-opacity="1" xmlns:xlink="http://www.w3.org/1999/xlink"
color-rendering="auto" color-interpolation="auto" text-rendering="auto"
stroke="black" stroke-linecap="square" stroke-miterlimit="10"
shape-rendering="auto" stroke-opacity="1" fill="black"
stroke-dasharray="none" font-weight="normal" stroke-width="1"
xmlns="http://www.w3.org/2000/svg" font-family="'Dialog'"
font-style="normal" stroke-linejoin="miter" font-size="12"
stroke-dashoffset="0" image-rendering="auto">
<!--Generated by the Batik Graphics2D SVG Generator-->
<defs id="genericDefs" />
<g>
<defs id="defs1">
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath1">
<path d="M0 0 L300 0 L300 300 L0 300 L0 0 Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath2">
<path d="M-29.5 -277 L270.5 -277 L270.5 23 L-29.5 23 L-29.5 -277 Z"
/>
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath3">
<path d="M-110.5 -277 L189.5 -277 L189.5 23 L-110.5 23 L-110.5 -277
Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath4">
<path d="M-191.5 -277 L108.5 -277 L108.5 23 L-191.5 23 L-191.5 -277
Z" />
</clipPath>
<clipPath clipPathUnits="userSpaceOnUse" id="clipPath5">
<path d="M8 23 L8 270 L292 270 L292 23 Z" />
</clipPath>
</defs>
<g fill="white" text-rendering="optimizeLegibility" stroke="white">
<rect x="0" y="0" clip-path="url(#clipPath1)" width="300" height="300"
stroke="none" />
<rect x="137" y="0" clip-path="url(#clipPath1)" width="26" height="19"
stroke="none" />
</g>
<g text-rendering="optimizeLegibility" font-size="14"
font-family="'Tahoma'">
<text xml:space="preserve" x="138" y="15.0068"
clip-path="url(#clipPath1)" stroke="none">Title</text>
</g>
<g fill="white" text-rendering="optimizeLegibility"
font-family="'SansSerif'" stroke="white">
<rect x="27.5" y="275" clip-path="url(#clipPath1)" width="245"
height="24" stroke="none" />
<rect x="27.5" y="275" clip-path="url(#clipPath1)" fill="black"
width="245" height="1" stroke="none" />
<rect x="27.5" y="298" clip-path="url(#clipPath1)" fill="black"
width="245" height="1" stroke="none" />
<rect x="27.5" y="275" clip-path="url(#clipPath1)" fill="black"
width="1" height="24" stroke="none" />
<rect x="271.5" y="275" clip-path="url(#clipPath1)" fill="black"
width="1" height="24" stroke="none" />
<path fill="rgb(255,175,171)" d="M10 10 C10 12.2091 8.2091 14 6 14
C3.7909 14 2 12.2091 2 10 C2 7.7909 3.7909 6 6 6 C8.2091 6 10 7.7909 10 10
Z" clip-path="url(#clipPath2)" transform="translate(29.5,277)" stroke="none"
/>
<path transform="translate(29.5,277)" clip-path="url(#clipPath2)"
fill="none" d="M10 10 C10 12.2091 8.2091 14 6 14 C3.7909 14 2 12.2091 2 10
C2 7.7909 3.7909 6 6 6 C8.2091 6 10 7.7909 10 10 Z" stroke="gray"
stroke-width="0.5" />
<text x="14" y="14.0645" transform="translate(29.5,277)"
clip-path="url(#clipPath2)" fill="black" stroke="none" stroke-width="0.5"
xml:space="preserve">Series1 = 5</text>
</g>
<g transform="matrix(1,0,0,1,29.5,277) translate(81,0)"
fill="rgb(130,178,255)" text-rendering="optimizeLegibility"
font-family="'SansSerif'" stroke="rgb(130,178,255)"
stroke-width="0.5">
<path d="M10 10 C10 12.2091 8.2091 14 6 14 C3.7909 14 2 12.2091 2 10
C2 7.7909 3.7909 6 6 6 C8.2091 6 10 7.7909 10 10 Z"
clip-path="url(#clipPath3)" stroke="none" />
<path fill="none" d="M10 10 C10 12.2091 8.2091 14 6 14 C3.7909 14 2
12.2091 2 10 C2 7.7909 3.7909 6 6 6 C8.2091 6 10 7.7909 10 10 Z"
clip-path="url(#clipPath3)" stroke="gray" />
<text x="14" y="14.0645" clip-path="url(#clipPath3)" fill="black"
stroke="none" xml:space="preserve">Series2 = 7</text>
</g>
<g transform="matrix(1,0,0,1,29.5,277) translate(162,0)" fill="red"
text-rendering="optimizeLegibility" font-family="'SansSerif'"
stroke="red" stroke-width="0.5">
<path d="M10 10 C10 12.2091 8.2091 14 6 14 C3.7909 14 2 12.2091 2 10
C2 7.7909 3.7909 6 6 6 C8.2091 6 10 7.7909 10 10 Z"
clip-path="url(#clipPath4)" stroke="none" />
<path fill="none" d="M10 10 C10 12.2091 8.2091 14 6 14 C3.7909 14 2
12.2091 2 10 C2 7.7909 3.7909 6 6 6 C8.2091 6 10 7.7909 10 10 Z"
clip-path="url(#clipPath4)" stroke="gray" />
<text x="14" y="14.0645" clip-path="url(#clipPath4)" fill="black"
stroke="none" xml:space="preserve">Series3 = 8</text>
</g>
<g fill="white" text-rendering="optimizeLegibility" stroke-width="0.5"
font-family="'SansSerif'" stroke="white">
<rect x="8" y="23" clip-path="url(#clipPath1)" width="284"
height="247" stroke="none" />
<rect x="8" y="23" clip-path="url(#clipPath1)" fill="none" width="284"
height="247" />
<path fill="gray" d="M154 89.795 C187.5264 89.795 214.705 116.9736
214.705 150.5 L154 150.5 Z" clip-path="url(#clipPath5)" stroke="none" />
<path fill="gray" d="M214.705 150.5 C214.705 173.3274 201.8989
194.2251 181.5595 204.5885 C161.2201 214.952 136.7863 213.029 118.3185
199.6114 L154 150.5 Z" clip-path="url(#clipPath5)" stroke="none" />
<path fill="gray" d="M118.3185 199.6114 C97.0422 184.1532 88.1393
156.753 96.2661 131.7411 C104.393 106.7293 127.701 89.795 154 89.795 L154
150.5 Z" clip-path="url(#clipPath5)" stroke="none" />
<path fill="rgb(255,175,171)" d="M150 85.795 A60.705 60.705 0 0 1
210.705 146.5L 150 146.5 Z" clip-path="url(#clipPath5)" stroke="none" />
<path fill="none" d="M150 85.795 A60.705 60.705 0 0 1 210.705 146.5L
150 146.5 Z" clip-path="url(#clipPath5)" stroke="gray" />
<path fill="rgb(130,178,255)" d="M210.705 146.5 A60.705 60.705 0 0 1
114.3185 195.6114L 150 146.5 Z" clip-path="url(#clipPath5)" stroke="none" />
<path fill="none" d="M210.705 146.5 A60.705 60.705 0 0 1 114.3185
195.6114L 150 146.5 Z" clip-path="url(#clipPath5)" stroke="gray" />
<path fill="red" d="M114.3185 195.6114 A60.705 60.705 0 0 1 150
85.795L 150 146.5 Z" clip-path="url(#clipPath5)" stroke="none" />
<path fill="none" d="M114.3185 195.6114 A60.705 60.705 0 0 1 150
85.795L 150 146.5 Z" clip-path="url(#clipPath5)" stroke="gray" />
<line clip-path="url(#clipPath5)" fill="none" x1="98.0395"
x2="89.2275" y1="129.617" y2="126.7538" stroke="black" />
<line clip-path="url(#clipPath5)" fill="none" x1="86.1" x2="89.2275"
y1="126.7538" y2="126.7538" stroke="black" />
<line clip-path="url(#clipPath5)" fill="none" x1="86.1" x2="72.2475"
y1="126.7538" y2="126.7538" stroke="black" />
<rect x="33.2475" y="120.7538" clip-path="url(#clipPath5)"
fill="silver" width="41" height="16" stroke="none" />
<rect x="31.2475" y="118.7538" clip-path="url(#clipPath5)"
fill="rgb(255,255,192)" width="41" height="16" stroke="none" />
<rect x="31.2475" y="118.7538" clip-path="url(#clipPath5)" fill="none"
width="41" height="16" stroke="black" />
<text x="34.2475" font-size="10" y="129.8075"
clip-path="url(#clipPath5)" fill="black" stroke="none"
xml:space="preserve">Series3</text>
</g>
<g text-rendering="optimizeLegibility" font-size="10" stroke-width="0.5"
font-family="'SansSerif'">
<line clip-path="url(#clipPath5)" fill="none" x1="188.6324"
x2="195.1841" y1="107.8676" y2="101.3159" />
<line clip-path="url(#clipPath5)" fill="none" x1="213.9" x2="195.1841"
y1="101.3159" y2="101.3159" />
<line clip-path="url(#clipPath5)" fill="none" x1="213.9" x2="226.0205"
y1="101.3159" y2="101.3159" />
<rect x="228.0205" y="95.3159" clip-path="url(#clipPath5)"
fill="silver" width="41" height="16" stroke="none" />
<rect x="226.0205" y="93.3159" clip-path="url(#clipPath5)"
fill="rgb(255,255,192)" width="41" height="16" stroke="none" />
<rect x="226.0205" y="93.3159" clip-path="url(#clipPath5)" fill="none"
width="41" height="16" />
<text xml:space="preserve" x="229.0205" y="104.3696"
clip-path="url(#clipPath5)" stroke="none">Series1</text>
</g>
<g text-rendering="optimizeLegibility" font-size="10" stroke-width="0.5"
font-family="'SansSerif'">
<line clip-path="url(#clipPath5)" fill="none" x1="174.8035"
x2="179.01" y1="195.1797" y2="203.4353" />
<line clip-path="url(#clipPath5)" fill="none" x1="213.9" x2="179.01"
y1="203.4353" y2="203.4353" />
<line clip-path="url(#clipPath5)" fill="none" x1="213.9" x2="224.2233"
y1="203.4353" y2="203.4353" />
<rect x="226.2233" y="197.4353" clip-path="url(#clipPath5)"
fill="silver" width="41" height="16" stroke="none" />
<rect x="224.2233" y="195.4353" clip-path="url(#clipPath5)"
fill="rgb(255,255,192)" width="41" height="16" stroke="none" />
<rect x="224.2233" y="195.4353" clip-path="url(#clipPath5)"
fill="none" width="41" height="16" />
<text xml:space="preserve" x="227.2233" y="206.489"
clip-path="url(#clipPath5)" stroke="none">Series2</text>
</g>
<g font-size="10" fill="white" text-rendering="optimizeLegibility"
font-family="'SansSerif'" stroke="white" stroke-width="0.5">
<rect x="8" y="23" clip-path="url(#clipPath1)" fill="none" width="284"
height="247" />
</g>
</g>
</svg>
---------
Re: FOP 0.92: Font related problem
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
As mentioned already a few days ago, font-family parsing is not 100%
correct at the moment. You can work around that by using single quotes:
font-family="'Monotype Corsiva'" or don't use spaces in font names. :-)
On 29.05.2006 10:26:44 Debasish Jana wrote:
> Hi,
> There seems to be a problem in FOP 0.92 for some fonts having spaces in
> font family names in the fop.xconf file. For e.g., if I have "Monotype
> Corsiva" in the fop.xconf file and my fontest.fo file, FOP tries to search
> with "Corsiva", cannot find any such name and replaces with the default
> font. I am attaching my fonttest.fo file and the fop.xconf file.
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
FOP 0.92: Font related problem
Posted by Debasish Jana <de...@anshinsoft.com>.
Hi,
There seems to be a problem in FOP 0.92 for some fonts having spaces in
font family names in the fop.xconf file. For e.g., if I have "Monotype
Corsiva" in the fop.xconf file and my fontest.fo file, FOP tries to search
with "Corsiva", cannot find any such name and replaces with the default
font. I am attaching my fonttest.fo file and the fop.xconf file.
Thanks in advance.
Regards,
Debasish Jana
-----
fonttest.fo
-----
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:repro="http://www.anshinsoft.com/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="repro0" margin-top="10.0pt"
margin-bottom="10.0pt" margin-left="10.0pt" margin-right="10.0pt"
page-height="842pt" page-width="595pt">
<fo:region-body padding-top="0.0pt" padding-bottom="0.0pt"
padding-left="0.0pt" padding-right="0.0pt" border-top-width="0.0pt"
border-top-color="#000000" border-bottom-width="0.0pt"
border-bottom-color="#000000" border-left-width="0.0pt"
border-left-color="#000000" border-right-width="0.0pt"
border-right-color="#000000" margin-top="20.0pt" margin-bottom="15.0pt"
margin-left="10.0pt" margin-right="10.0pt">
</fo:region-body>
<fo:region-before extent="20pt">
</fo:region-before>
<fo:region-after extent="15pt">
</fo:region-after>
<fo:region-start extent="10pt">
</fo:region-start>
<fo:region-end extent="10pt">
</fo:region-end>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="repro0">
<fo:static-content flow-name="xsl-region-before">
<fo:block-container height="20pt" width="575pt" top="0pt" left="0pt"
position="absolute" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt">
</fo:block>
</fo:block-container></fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block-container height="15pt" width="575pt" top="0pt" left="0pt"
position="absolute" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt">
</fo:block>
</fo:block-container></fo:static-content>
<fo:static-content flow-name="xsl-region-start">
<fo:block-container height="787pt" width="10pt" top="20pt" left="0pt"
position="absolute">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
</fo:block>
</fo:block-container></fo:static-content>
<fo:static-content flow-name="xsl-region-end">
<fo:block-container height="787pt" width="10pt" top="20pt" left="0pt"
position="absolute">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
</fo:block>
</fo:block-container></fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block-container> <fo:block><fo:block text-align="left"><fo:inline
color="#000000" text-decoration="none" font-family="Monotype Corsiva"
font-size="28pt" font-weight="normal" font-style="normal">This is a test for
font.</fo:inline></fo:block> </fo:block> </fo:block-container><fo:block
id="theEnd"></fo:block></fo:flow>
</fo:page-sequence>
</fo:root>
-----
fop.xconf
-----
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.
Relative config url's will be resolved relative to
the location of this file.
-->
<!-- NOTE: This is the version of the configuration -->
<fop version="1.0">
<!-- Base URL for resolving relative URLs -->
<base>.</base>
<!-- Source resolution in dpi (dots/pixels per inch) for determining the
size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the
target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>72</target-resolution>
<!-- Default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.26in" />
<!-- Information for specific renderers -->
<!-- Uses renderer mime type for renderers -->
<renderers>
<renderer mime="application/pdf">
<filterList>
<!-- provides compression using zlib flate (default is on) -->
<value>flate</value>
<!-- encodes binary data into printable ascii characters (default
off)
This provides about a 4:5 expansion of data size -->
<!-- <value>ascii-85</value> -->
<!-- encodes binary data with hex representation (default off)
This filter is not recommended as it doubles the data size -->
<!-- <value>ascii-hex</value> -->
</filterList>
<fonts>
<!-- embedded fonts -->
<!--
This information must exactly match the font specified
in the fo file. Otherwise it will use a default font.
For example,
<fo:inline font-family="Arial" font-weight="bold"
font-style="normal">
Arial-normal-normal font
</fo:inline>
for the font triplet specified by:
<font-triplet name="Arial" style="normal" weight="bold"/>
If you do not want to embed the font in the pdf document
then do not include the "embed-url" attribute.
The font will be needed where the document is viewed
for it to be displayed properly.
possible styles: normal | italic | oblique | backslant
possible weights: normal | bold | 100 | 200 | 300 | 400
| 500 | 600 | 700 | 800 | 900
(normal = 400, bold = 700)
-->
<!--
<font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
-->
<font metrics-url="./fonts/antquab.xml" kerning="yes"
embed-url="./fonts/antquab.ttf">
<font-triplet name="Book Antiqua" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/antquabi.xml" kerning="yes"
embed-url="./fonts/antquabi.ttf">
<font-triplet name="Book Antiqua" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/antquai.xml" kerning="yes"
embed-url="./fonts/antquai.ttf">
<font-triplet name="Book Antiqua" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/arial.xml" kerning="yes"
embed-url="./fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/arialbd.xml" kerning="yes"
embed-url="./fonts/arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/arialbi.xml" kerning="yes"
embed-url="./fonts/arialbi.ttf">
<font-triplet name="Arial" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/ariali.xml" kerning="yes"
embed-url="./fonts/ariali.ttf">
<font-triplet name="Arial" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/arialn.xml" kerning="yes"
embed-url="./fonts/arialn.ttf">
<font-triplet name="Arial Narrow" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/arialnb.xml" kerning="yes"
embed-url="./fonts/arialnb.ttf">
<font-triplet name="Arial Narrow" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/arialnbi.xml" kerning="yes"
embed-url="./fonts/arialnbi.ttf">
<font-triplet name="Arial Narrow" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/arialni.xml" kerning="yes"
embed-url="./fonts/arialni.ttf">
<font-triplet name="Arial Narrow" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/arialuni.xml" kerning="yes"
embed-url="./fonts/arialuni.ttf">
<font-triplet name="Arial Unicode MS" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/ariblk.xml" kerning="yes"
embed-url="./fonts/ariblk.ttf">
<font-triplet name="Arial Black" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/bkant.xml" kerning="yes"
embed-url="./fonts/bkant.ttf">
<font-triplet name="Book Antiqua" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/bookos.xml" kerning="yes"
embed-url="./fonts/bookos.ttf">
<font-triplet name="Bookman Old Style" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/bookosb.xml" kerning="yes"
embed-url="./fonts/bookosb.ttf">
<font-triplet name="Bookman Old Style" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/bookosbi.xml" kerning="yes"
embed-url="./fonts/bookosbi.ttf">
<font-triplet name="Bookman Old Style" style="italic"
weight="bold" />
</font>
<font metrics-url="./fonts/bookosi.xml" kerning="yes"
embed-url="./fonts/bookosi.ttf">
<font-triplet name="Bookman Old Style" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/century.xml" kerning="yes"
embed-url="./fonts/century.ttf">
<font-triplet name="Century" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/comic.xml" kerning="yes"
embed-url="./fonts/comic.ttf">
<font-triplet name="Comic Sans MS" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/comicbd.xml" kerning="yes"
embed-url="./fonts/comicbd.ttf">
<font-triplet name="Comic Sans MS" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/cour.xml" kerning="yes"
embed-url="./fonts/cour.ttf">
<font-triplet name="Courier New" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/courbd.xml" kerning="yes"
embed-url="./fonts/courbd.ttf">
<font-triplet name="Courier New" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/courbi.xml" kerning="yes"
embed-url="./fonts/courbi.ttf">
<font-triplet name="Courier New" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/couri.xml" kerning="yes"
embed-url="./fonts/couri.ttf">
<font-triplet name="Courier New" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/estre.xml" kerning="yes"
embed-url="./fonts/estre.ttf">
<font-triplet name="Estrangelo Edessa" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/framd.xml" kerning="yes"
embed-url="./fonts/framd.ttf">
<font-triplet name="Franklin Gothic Medium" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/framdit.xml" kerning="yes"
embed-url="./fonts/framdit.ttf">
<font-triplet name="Franklin Gothic Medium" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/gara.xml" kerning="yes"
embed-url="./fonts/gara.ttf">
<font-triplet name="Garamond" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/garabd.xml" kerning="yes"
embed-url="./fonts/garabd.ttf">
<font-triplet name="Garamond" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/garait.xml" kerning="yes"
embed-url="./fonts/garait.ttf">
<font-triplet name="Garamond" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/gautami.xml" kerning="yes"
embed-url="./fonts/gautami.ttf">
<font-triplet name="Gautami" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/georgia.xml" kerning="yes"
embed-url="./fonts/georgia.ttf">
<font-triplet name="Georgia" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/georgiab.xml" kerning="yes"
embed-url="./fonts/georgiab.ttf">
<font-triplet name="Georgia" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/georgiai.xml" kerning="yes"
embed-url="./fonts/georgiai.ttf">
<font-triplet name="Georgia" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/georgiaz.xml" kerning="yes"
embed-url="./fonts/georgiaz.ttf">
<font-triplet name="Georgia" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/gothic.xml" kerning="yes"
embed-url="./fonts/gothic.ttf">
<font-triplet name="Century Gothic" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/gothicb.xml" kerning="yes"
embed-url="./fonts/gothicb.ttf">
<font-triplet name="Century Gothic" style="normal" weight="bold"
/>
</font>
<font metrics-url="./fonts/gothicbi.xml" kerning="yes"
embed-url="./fonts/gothicbi.ttf">
<font-triplet name="Century Gothic" style="italic" weight="bold"
/>
</font>
<font metrics-url="./fonts/gothici.xml" kerning="yes"
embed-url="./fonts/gothici.ttf">
<font-triplet name="Century Gothic" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/impact.xml" kerning="yes"
embed-url="./fonts/impact.ttf">
<font-triplet name="Impact" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/kartika.xml" kerning="yes"
embed-url="./fonts/kartika.ttf">
<font-triplet name="Kartika" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/latha.xml" kerning="yes"
embed-url="./fonts/latha.ttf">
<font-triplet name="Latha" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/lsans.xml" kerning="yes"
embed-url="./fonts/lsans.ttf">
<font-triplet name="Lucida Sans" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/lsansd.xml" kerning="yes"
embed-url="./fonts/lsansd.ttf">
<font-triplet name="Lucida Sans" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/lsansdi.xml" kerning="yes"
embed-url="./fonts/lsansdi.ttf">
<font-triplet name="Lucida Sans" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/lsansi.xml" kerning="yes"
embed-url="./fonts/lsansi.ttf">
<font-triplet name="Lucida Sans" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/lucon.xml" kerning="yes"
embed-url="./fonts/lucon.ttf">
<font-triplet name="Lucida Console" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/l_10646.xml" kerning="yes"
embed-url="./fonts/l_10646.ttf">
<font-triplet name="Lucida Sans Unicode" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/mangal.xml" kerning="yes"
embed-url="./fonts/mangal.ttf">
<font-triplet name="Mangal" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/micross.xml" kerning="yes"
embed-url="./fonts/micross.ttf">
<font-triplet name="Microsoft Sans Serif" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/mtcorsva.xml" kerning="yes"
embed-url="./fonts/mtcorsva.ttf">
<font-triplet name="Monotype Corsiva" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/mvboli.xml" kerning="yes"
embed-url="./fonts/mvboli.ttf">
<font-triplet name="MV Boli" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/opens___.xml" kerning="yes"
embed-url="./fonts/opens___.ttf">
<font-triplet name="OpenSymbol" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/pala.xml" kerning="yes"
embed-url="./fonts/pala.ttf">
<font-triplet name="Palatino Linotype" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/palab.xml" kerning="yes"
embed-url="./fonts/palab.ttf">
<font-triplet name="Palatino Linotype" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/palabi.xml" kerning="yes"
embed-url="./fonts/palabi.ttf">
<font-triplet name="Palatino Linotype" style="italic"
weight="bold" />
</font>
<font metrics-url="./fonts/palai.xml" kerning="yes"
embed-url="./fonts/palai.ttf">
<font-triplet name="Palatino Linotype" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/raavi.xml" kerning="yes"
embed-url="./fonts/raavi.ttf">
<font-triplet name="Raavi" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/refsan.xml" kerning="yes"
embed-url="./fonts/refsan.ttf">
<font-triplet name="MS Reference Sans Serif" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/shruti.xml" kerning="yes"
embed-url="./fonts/shruti.ttf">
<font-triplet name="Shruti" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/sylfaen.xml" kerning="yes"
embed-url="./fonts/sylfaen.ttf">
<font-triplet name="Sylfaen" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/tahoma.xml" kerning="yes"
embed-url="./fonts/tahoma.ttf">
<font-triplet name="Tahoma" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/tahomabd.xml" kerning="yes"
embed-url="./fonts/tahomabd.ttf">
<font-triplet name="Tahoma" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/times.xml" kerning="yes"
embed-url="./fonts/times.ttf">
<font-triplet name="Times New Roman" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/timesbd.xml" kerning="yes"
embed-url="./fonts/timesbd.ttf">
<font-triplet name="Times New Roman" style="normal" weight="bold"
/>
</font>
<font metrics-url="./fonts/timesbi.xml" kerning="yes"
embed-url="./fonts/timesbi.ttf">
<font-triplet name="Times New Roman" style="italic" weight="bold"
/>
</font>
<font metrics-url="./fonts/timesi.xml" kerning="yes"
embed-url="./fonts/timesi.ttf">
<font-triplet name="Times New Roman" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/trebuc.xml" kerning="yes"
embed-url="./fonts/trebuc.ttf">
<font-triplet name="Trebuchet MS" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/trebucbd.xml" kerning="yes"
embed-url="./fonts/trebucbd.ttf">
<font-triplet name="Trebuchet MS" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/trebucbi.xml" kerning="yes"
embed-url="./fonts/trebucbi.ttf">
<font-triplet name="Trebuchet MS" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/trebucit.xml" kerning="yes"
embed-url="./fonts/trebucit.ttf">
<font-triplet name="Trebuchet MS" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/tunga.xml" kerning="yes"
embed-url="./fonts/tunga.ttf">
<font-triplet name="Tunga" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/vera.xml" kerning="yes"
embed-url="./fonts/vera.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/verabd.xml" kerning="yes"
embed-url="./fonts/verabd.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/verabi.xml" kerning="yes"
embed-url="./fonts/verabi.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/verait.xml" kerning="yes"
embed-url="./fonts/verait.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/veramobd.xml" kerning="yes"
embed-url="./fonts/veramobd.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/veramobi.xml" kerning="yes"
embed-url="./fonts/veramobi.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/veramoit.xml" kerning="yes"
embed-url="./fonts/veramoit.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/veramono.xml" kerning="yes"
embed-url="./fonts/veramono.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/verase.xml" kerning="yes"
embed-url="./fonts/verase.ttf">
<font-triplet name="Bitstream Vera Serif" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/verasebd.xml" kerning="yes"
embed-url="./fonts/verasebd.ttf">
<font-triplet name="Bitstream Vera Serif" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/verdana.xml" kerning="yes"
embed-url="./fonts/verdana.ttf">
<font-triplet name="Verdana" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/verdanab.xml" kerning="yes"
embed-url="./fonts/verdanab.ttf">
<font-triplet name="Verdana" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/verdanai.xml" kerning="yes"
embed-url="./fonts/verdanai.ttf">
<font-triplet name="Verdana" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/verdanaz.xml" kerning="yes"
embed-url="./fonts/verdanaz.ttf">
<font-triplet name="Verdana" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/vrinda.xml" kerning="yes"
embed-url="./fonts/vrinda.ttf">
<font-triplet name="Vrinda" style="normal" weight="normal" />
</font>
</fonts>
<!-- This option lets you specify additional options on an XML handler
-->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/postscript">
<!-- This option forces the PS renderer to rotate landscape pages -->
<!--auto-rotate-landscape>true</auto-rotate-landscape-->
<!-- This option lets you specify additional options on an XML handler
-->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/vnd.hp-PCL" />
<!-- MIF does not have a renderer
<renderer mime="application/vnd.mif">
</renderer>
-->
<renderer mime="image/svg+xml">
<format type="paginated" />
<link value="true" />
<strokeText value="false" />
</renderer>
<renderer mime="application/awt" />
<renderer mime="text/xml" />
<!-- RTF does not have a renderer
<renderer mime="text/rtf">
</renderer>
-->
<renderer mime="text/plain">
<pageSize columns="80" />
</renderer>
</renderers>
</fop>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
FOP 0.92: Font related problem
Posted by Debasish Jana <de...@anshinsoft.com>.
Hi,
There seems to be a problem in FOP 0.92 for some fonts having spaces in
font family names in the fop.xconf file. For e.g., if I have "Monotype
Corsiva" in the fop.xconf file and my fontest.fo file, FOP tries to search
with "Corsiva", cannot find any such name and replaces with the default
font. I am attaching my fonttest.fo file and the fop.xconf file.
Thanks in advance.
Regards,
Debasish Jana
-----
fonttest.fo
-----
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:repro="http://www.anshinsoft.com/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="repro0" margin-top="10.0pt"
margin-bottom="10.0pt" margin-left="10.0pt" margin-right="10.0pt"
page-height="842pt" page-width="595pt">
<fo:region-body padding-top="0.0pt" padding-bottom="0.0pt"
padding-left="0.0pt" padding-right="0.0pt" border-top-width="0.0pt"
border-top-color="#000000" border-bottom-width="0.0pt"
border-bottom-color="#000000" border-left-width="0.0pt"
border-left-color="#000000" border-right-width="0.0pt"
border-right-color="#000000" margin-top="20.0pt" margin-bottom="15.0pt"
margin-left="10.0pt" margin-right="10.0pt">
</fo:region-body>
<fo:region-before extent="20pt">
</fo:region-before>
<fo:region-after extent="15pt">
</fo:region-after>
<fo:region-start extent="10pt">
</fo:region-start>
<fo:region-end extent="10pt">
</fo:region-end>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="repro0">
<fo:static-content flow-name="xsl-region-before">
<fo:block-container height="20pt" width="575pt" top="0pt" left="0pt"
position="absolute" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt">
</fo:block>
</fo:block-container></fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block-container height="15pt" width="575pt" top="0pt" left="0pt"
position="absolute" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt">
</fo:block>
</fo:block-container></fo:static-content>
<fo:static-content flow-name="xsl-region-start">
<fo:block-container height="787pt" width="10pt" top="20pt" left="0pt"
position="absolute">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
</fo:block>
</fo:block-container></fo:static-content>
<fo:static-content flow-name="xsl-region-end">
<fo:block-container height="787pt" width="10pt" top="20pt" left="0pt"
position="absolute">
<fo:block padding-top="0.0pt" padding-bottom="0.0pt" padding-left="0.0pt"
padding-right="0.0pt" border-top-width="0.0pt" border-top-color="#000000"
border-bottom-width="0.0pt" border-bottom-color="#000000"
border-left-width="0.0pt" border-left-color="#000000"
border-right-width="0.0pt" border-right-color="#000000">
</fo:block>
</fo:block-container></fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block-container> <fo:block><fo:block text-align="left"><fo:inline
color="#000000" text-decoration="none" font-family="Monotype Corsiva"
font-size="28pt" font-weight="normal" font-style="normal">This is a test for
font.</fo:inline></fo:block> </fo:block> </fo:block-container><fo:block
id="theEnd"></fo:block></fo:flow>
</fo:page-sequence>
</fo:root>
-----
fop.xconf
-----
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.
Relative config url's will be resolved relative to
the location of this file.
-->
<!-- NOTE: This is the version of the configuration -->
<fop version="1.0">
<!-- Base URL for resolving relative URLs -->
<base>.</base>
<!-- Source resolution in dpi (dots/pixels per inch) for determining the
size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the
target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>72</target-resolution>
<!-- Default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.26in" />
<!-- Information for specific renderers -->
<!-- Uses renderer mime type for renderers -->
<renderers>
<renderer mime="application/pdf">
<filterList>
<!-- provides compression using zlib flate (default is on) -->
<value>flate</value>
<!-- encodes binary data into printable ascii characters (default
off)
This provides about a 4:5 expansion of data size -->
<!-- <value>ascii-85</value> -->
<!-- encodes binary data with hex representation (default off)
This filter is not recommended as it doubles the data size -->
<!-- <value>ascii-hex</value> -->
</filterList>
<fonts>
<!-- embedded fonts -->
<!--
This information must exactly match the font specified
in the fo file. Otherwise it will use a default font.
For example,
<fo:inline font-family="Arial" font-weight="bold"
font-style="normal">
Arial-normal-normal font
</fo:inline>
for the font triplet specified by:
<font-triplet name="Arial" style="normal" weight="bold"/>
If you do not want to embed the font in the pdf document
then do not include the "embed-url" attribute.
The font will be needed where the document is viewed
for it to be displayed properly.
possible styles: normal | italic | oblique | backslant
possible weights: normal | bold | 100 | 200 | 300 | 400
| 500 | 600 | 700 | 800 | 900
(normal = 400, bold = 700)
-->
<!--
<font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="ArialMT" style="normal" weight="normal"/>
</font>
<font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="ArialMT" style="normal" weight="bold"/>
</font>
-->
<font metrics-url="./fonts/antquab.xml" kerning="yes"
embed-url="./fonts/antquab.ttf">
<font-triplet name="Book Antiqua" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/antquabi.xml" kerning="yes"
embed-url="./fonts/antquabi.ttf">
<font-triplet name="Book Antiqua" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/antquai.xml" kerning="yes"
embed-url="./fonts/antquai.ttf">
<font-triplet name="Book Antiqua" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/arial.xml" kerning="yes"
embed-url="./fonts/arial.ttf">
<font-triplet name="Arial" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/arialbd.xml" kerning="yes"
embed-url="./fonts/arialbd.ttf">
<font-triplet name="Arial" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/arialbi.xml" kerning="yes"
embed-url="./fonts/arialbi.ttf">
<font-triplet name="Arial" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/ariali.xml" kerning="yes"
embed-url="./fonts/ariali.ttf">
<font-triplet name="Arial" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/arialn.xml" kerning="yes"
embed-url="./fonts/arialn.ttf">
<font-triplet name="Arial Narrow" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/arialnb.xml" kerning="yes"
embed-url="./fonts/arialnb.ttf">
<font-triplet name="Arial Narrow" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/arialnbi.xml" kerning="yes"
embed-url="./fonts/arialnbi.ttf">
<font-triplet name="Arial Narrow" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/arialni.xml" kerning="yes"
embed-url="./fonts/arialni.ttf">
<font-triplet name="Arial Narrow" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/arialuni.xml" kerning="yes"
embed-url="./fonts/arialuni.ttf">
<font-triplet name="Arial Unicode MS" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/ariblk.xml" kerning="yes"
embed-url="./fonts/ariblk.ttf">
<font-triplet name="Arial Black" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/bkant.xml" kerning="yes"
embed-url="./fonts/bkant.ttf">
<font-triplet name="Book Antiqua" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/bookos.xml" kerning="yes"
embed-url="./fonts/bookos.ttf">
<font-triplet name="Bookman Old Style" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/bookosb.xml" kerning="yes"
embed-url="./fonts/bookosb.ttf">
<font-triplet name="Bookman Old Style" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/bookosbi.xml" kerning="yes"
embed-url="./fonts/bookosbi.ttf">
<font-triplet name="Bookman Old Style" style="italic"
weight="bold" />
</font>
<font metrics-url="./fonts/bookosi.xml" kerning="yes"
embed-url="./fonts/bookosi.ttf">
<font-triplet name="Bookman Old Style" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/century.xml" kerning="yes"
embed-url="./fonts/century.ttf">
<font-triplet name="Century" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/comic.xml" kerning="yes"
embed-url="./fonts/comic.ttf">
<font-triplet name="Comic Sans MS" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/comicbd.xml" kerning="yes"
embed-url="./fonts/comicbd.ttf">
<font-triplet name="Comic Sans MS" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/cour.xml" kerning="yes"
embed-url="./fonts/cour.ttf">
<font-triplet name="Courier New" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/courbd.xml" kerning="yes"
embed-url="./fonts/courbd.ttf">
<font-triplet name="Courier New" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/courbi.xml" kerning="yes"
embed-url="./fonts/courbi.ttf">
<font-triplet name="Courier New" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/couri.xml" kerning="yes"
embed-url="./fonts/couri.ttf">
<font-triplet name="Courier New" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/estre.xml" kerning="yes"
embed-url="./fonts/estre.ttf">
<font-triplet name="Estrangelo Edessa" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/framd.xml" kerning="yes"
embed-url="./fonts/framd.ttf">
<font-triplet name="Franklin Gothic Medium" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/framdit.xml" kerning="yes"
embed-url="./fonts/framdit.ttf">
<font-triplet name="Franklin Gothic Medium" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/gara.xml" kerning="yes"
embed-url="./fonts/gara.ttf">
<font-triplet name="Garamond" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/garabd.xml" kerning="yes"
embed-url="./fonts/garabd.ttf">
<font-triplet name="Garamond" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/garait.xml" kerning="yes"
embed-url="./fonts/garait.ttf">
<font-triplet name="Garamond" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/gautami.xml" kerning="yes"
embed-url="./fonts/gautami.ttf">
<font-triplet name="Gautami" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/georgia.xml" kerning="yes"
embed-url="./fonts/georgia.ttf">
<font-triplet name="Georgia" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/georgiab.xml" kerning="yes"
embed-url="./fonts/georgiab.ttf">
<font-triplet name="Georgia" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/georgiai.xml" kerning="yes"
embed-url="./fonts/georgiai.ttf">
<font-triplet name="Georgia" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/georgiaz.xml" kerning="yes"
embed-url="./fonts/georgiaz.ttf">
<font-triplet name="Georgia" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/gothic.xml" kerning="yes"
embed-url="./fonts/gothic.ttf">
<font-triplet name="Century Gothic" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/gothicb.xml" kerning="yes"
embed-url="./fonts/gothicb.ttf">
<font-triplet name="Century Gothic" style="normal" weight="bold"
/>
</font>
<font metrics-url="./fonts/gothicbi.xml" kerning="yes"
embed-url="./fonts/gothicbi.ttf">
<font-triplet name="Century Gothic" style="italic" weight="bold"
/>
</font>
<font metrics-url="./fonts/gothici.xml" kerning="yes"
embed-url="./fonts/gothici.ttf">
<font-triplet name="Century Gothic" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/impact.xml" kerning="yes"
embed-url="./fonts/impact.ttf">
<font-triplet name="Impact" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/kartika.xml" kerning="yes"
embed-url="./fonts/kartika.ttf">
<font-triplet name="Kartika" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/latha.xml" kerning="yes"
embed-url="./fonts/latha.ttf">
<font-triplet name="Latha" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/lsans.xml" kerning="yes"
embed-url="./fonts/lsans.ttf">
<font-triplet name="Lucida Sans" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/lsansd.xml" kerning="yes"
embed-url="./fonts/lsansd.ttf">
<font-triplet name="Lucida Sans" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/lsansdi.xml" kerning="yes"
embed-url="./fonts/lsansdi.ttf">
<font-triplet name="Lucida Sans" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/lsansi.xml" kerning="yes"
embed-url="./fonts/lsansi.ttf">
<font-triplet name="Lucida Sans" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/lucon.xml" kerning="yes"
embed-url="./fonts/lucon.ttf">
<font-triplet name="Lucida Console" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/l_10646.xml" kerning="yes"
embed-url="./fonts/l_10646.ttf">
<font-triplet name="Lucida Sans Unicode" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/mangal.xml" kerning="yes"
embed-url="./fonts/mangal.ttf">
<font-triplet name="Mangal" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/micross.xml" kerning="yes"
embed-url="./fonts/micross.ttf">
<font-triplet name="Microsoft Sans Serif" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/mtcorsva.xml" kerning="yes"
embed-url="./fonts/mtcorsva.ttf">
<font-triplet name="Monotype Corsiva" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/mvboli.xml" kerning="yes"
embed-url="./fonts/mvboli.ttf">
<font-triplet name="MV Boli" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/opens___.xml" kerning="yes"
embed-url="./fonts/opens___.ttf">
<font-triplet name="OpenSymbol" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/pala.xml" kerning="yes"
embed-url="./fonts/pala.ttf">
<font-triplet name="Palatino Linotype" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/palab.xml" kerning="yes"
embed-url="./fonts/palab.ttf">
<font-triplet name="Palatino Linotype" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/palabi.xml" kerning="yes"
embed-url="./fonts/palabi.ttf">
<font-triplet name="Palatino Linotype" style="italic"
weight="bold" />
</font>
<font metrics-url="./fonts/palai.xml" kerning="yes"
embed-url="./fonts/palai.ttf">
<font-triplet name="Palatino Linotype" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/raavi.xml" kerning="yes"
embed-url="./fonts/raavi.ttf">
<font-triplet name="Raavi" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/refsan.xml" kerning="yes"
embed-url="./fonts/refsan.ttf">
<font-triplet name="MS Reference Sans Serif" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/shruti.xml" kerning="yes"
embed-url="./fonts/shruti.ttf">
<font-triplet name="Shruti" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/sylfaen.xml" kerning="yes"
embed-url="./fonts/sylfaen.ttf">
<font-triplet name="Sylfaen" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/tahoma.xml" kerning="yes"
embed-url="./fonts/tahoma.ttf">
<font-triplet name="Tahoma" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/tahomabd.xml" kerning="yes"
embed-url="./fonts/tahomabd.ttf">
<font-triplet name="Tahoma" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/times.xml" kerning="yes"
embed-url="./fonts/times.ttf">
<font-triplet name="Times New Roman" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/timesbd.xml" kerning="yes"
embed-url="./fonts/timesbd.ttf">
<font-triplet name="Times New Roman" style="normal" weight="bold"
/>
</font>
<font metrics-url="./fonts/timesbi.xml" kerning="yes"
embed-url="./fonts/timesbi.ttf">
<font-triplet name="Times New Roman" style="italic" weight="bold"
/>
</font>
<font metrics-url="./fonts/timesi.xml" kerning="yes"
embed-url="./fonts/timesi.ttf">
<font-triplet name="Times New Roman" style="italic"
weight="normal" />
</font>
<font metrics-url="./fonts/trebuc.xml" kerning="yes"
embed-url="./fonts/trebuc.ttf">
<font-triplet name="Trebuchet MS" style="normal" weight="normal"
/>
</font>
<font metrics-url="./fonts/trebucbd.xml" kerning="yes"
embed-url="./fonts/trebucbd.ttf">
<font-triplet name="Trebuchet MS" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/trebucbi.xml" kerning="yes"
embed-url="./fonts/trebucbi.ttf">
<font-triplet name="Trebuchet MS" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/trebucit.xml" kerning="yes"
embed-url="./fonts/trebucit.ttf">
<font-triplet name="Trebuchet MS" style="italic" weight="normal"
/>
</font>
<font metrics-url="./fonts/tunga.xml" kerning="yes"
embed-url="./fonts/tunga.ttf">
<font-triplet name="Tunga" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/vera.xml" kerning="yes"
embed-url="./fonts/vera.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/verabd.xml" kerning="yes"
embed-url="./fonts/verabd.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/verabi.xml" kerning="yes"
embed-url="./fonts/verabi.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/verait.xml" kerning="yes"
embed-url="./fonts/verait.ttf">
<font-triplet name="Bitstream Vera Sans" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/veramobd.xml" kerning="yes"
embed-url="./fonts/veramobd.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/veramobi.xml" kerning="yes"
embed-url="./fonts/veramobi.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/veramoit.xml" kerning="yes"
embed-url="./fonts/veramoit.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/veramono.xml" kerning="yes"
embed-url="./fonts/veramono.ttf">
<font-triplet name="Bitstream Vera Sans Mono" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/verase.xml" kerning="yes"
embed-url="./fonts/verase.ttf">
<font-triplet name="Bitstream Vera Serif" style="normal"
weight="normal" />
</font>
<font metrics-url="./fonts/verasebd.xml" kerning="yes"
embed-url="./fonts/verasebd.ttf">
<font-triplet name="Bitstream Vera Serif" style="normal"
weight="bold" />
</font>
<font metrics-url="./fonts/verdana.xml" kerning="yes"
embed-url="./fonts/verdana.ttf">
<font-triplet name="Verdana" style="normal" weight="normal" />
</font>
<font metrics-url="./fonts/verdanab.xml" kerning="yes"
embed-url="./fonts/verdanab.ttf">
<font-triplet name="Verdana" style="normal" weight="bold" />
</font>
<font metrics-url="./fonts/verdanai.xml" kerning="yes"
embed-url="./fonts/verdanai.ttf">
<font-triplet name="Verdana" style="italic" weight="normal" />
</font>
<font metrics-url="./fonts/verdanaz.xml" kerning="yes"
embed-url="./fonts/verdanaz.ttf">
<font-triplet name="Verdana" style="italic" weight="bold" />
</font>
<font metrics-url="./fonts/vrinda.xml" kerning="yes"
embed-url="./fonts/vrinda.ttf">
<font-triplet name="Vrinda" style="normal" weight="normal" />
</font>
</fonts>
<!-- This option lets you specify additional options on an XML handler
-->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/postscript">
<!-- This option forces the PS renderer to rotate landscape pages -->
<!--auto-rotate-landscape>true</auto-rotate-landscape-->
<!-- This option lets you specify additional options on an XML handler
-->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/vnd.hp-PCL" />
<!-- MIF does not have a renderer
<renderer mime="application/vnd.mif">
</renderer>
-->
<renderer mime="image/svg+xml">
<format type="paginated" />
<link value="true" />
<strokeText value="false" />
</renderer>
<renderer mime="application/awt" />
<renderer mime="text/xml" />
<!-- RTF does not have a renderer
<renderer mime="text/rtf">
</renderer>
-->
<renderer mime="text/plain">
<pageSize columns="80" />
</renderer>
</renderers>
</fop>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: FOP 0.92: SVG Rendering problem to PDF
Posted by Debasish Jana <de...@anshinsoft.com>.
Many thanks, it worked, fantastic
Regards,
Debasish Jana
-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: Friday, May 26, 2006 2:18 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP 0.92: SVG Rendering problem to PDF
Debasish Jana wrote:
> I am having a problem in rendering a SVG, We used SVGGraphics2D for the
...
FOP has difficulties rendering SVGs which don't specify heigth
and width on the SVG root.
You should get something if you specify a height/width (in cm
or pt) and a proper viewport on the SVG and a matching content-height
and content-width on the fo:external-graphic.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 0.92: SVG Rendering problem to PDF
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Debasish Jana wrote:
> I am having a problem in rendering a SVG, We used SVGGraphics2D for the
> following SVG (within ------ block), marked below. While trying to render
> using FOP0.92 Beta, it is not showing up the pie chart in the rendered PDF.
> The SVG is however being opened by any other SVG viewer e.g. a web browser.
> We tried with alternate simplified SVG to render to PDF. That worked. Can
> you please suggest any workaround?
...
> <svg fill-opacity="1" xmlns:xlink="http://www.w3.org/1999/xlink"
> color-rendering="auto" color-interpolation="auto" text-rendering="auto"
> stroke="black" stroke-linecap="square" stroke-miterlimit="10"
> shape-rendering="auto" stroke-opacity="1" fill="black"
> stroke-dasharray="none" font-weight="normal" stroke-width="1"
> xmlns="http://www.w3.org/2000/svg" font-family="'Dialog'"
> font-style="normal" stroke-linejoin="miter" font-size="12"
> stroke-dashoffset="0" image-rendering="auto">
FOP has difficulties rendering SVGs which don't specify heigth
and width on the SVG root.
You should get something if you specify a height/width (in cm
or pt) and a proper viewport on the SVG and a matching content-height
and content-width on the fo:external-graphic.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org