I'm not sure if this is more of an FOP problem, or if it is Batik.
I'm posting on this board because I read that FOP uses Batik for
conversion to SVG anyway. I have a FO doc that I convert to SVG with
FOP. The doc contains a bulleted list of text. The bullets can be
seen in the FO doc as Symbol character glyphs. The font face is
"Symbol" and the text inside is: \342\200\242. When I run FOP, it
always replaces these bullets with ?'s. This is only happens on my
linux machine, on windows it is fine. Obviously what is happening
here is the FOP cannot determine the glyph associated with the
"Symbol" font and is substituting ?'s.
The funny thing is that i have a bunch of windows fonts installed on
linux (including symbol.ttf), and i know that JVM can see the symbol
font because when i call getAvailableFontFamilyNames() on the Graphics
environment, it returns all the fonts. The wierd thin is that the
Symbol font entry in the fonts.dir folder is as follows (only two
entries):
symbol.ttf -monotype-Symbol-medium-r-normal--0-0-0-0-p-0-iso10646-1
symbol.ttf -monotype-Symbol-medium-r-normal--0-0-0-0-p-0-microsoft-symbol
but the rest of the windows fonts list way more:
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-1
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-10
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-13
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-15
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-16
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-2
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-3
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-4
arial.ttf -monotype-Arial-medium-r-normal--0-0-0-0-p-0-iso8859-5
...and so on.
My question is: does anyone know of a font that i can use on linux
that will work in place of the windows symbol fonts? I think FOP
needs a iso8859 entry to work. Also, is there some setting in FOP that
i can use that will change the default unknown character from ?'s to
something else?
Thanks for looking at this.
-dave
<?xml version="1.0" encoding="UTF-8"?>
<fo:root line-stacking-strategy="font-height" xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:layout-master-set><fo:simple-page-master margin-bottom="36pt" margin-left="85.05pt" margin-right="42.5pt" margin-top="36pt" master-name="pm0" page-height="792pt" page-width="612pt"><fo:region-body margin-bottom="20.7pt" margin-top="20.7pt" overflow="visible" region-name="body"/><fo:region-before extent="720pt" overflow="visible" region-name="header"/><fo:region-after display-align="after" extent="20.7pt" overflow="hidden" region-name="footer"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="pm0" orphans="2" white-space-collapse="false" widows="2"><fo:flow flow-name="body"><fo:block keep-with-next.within-column="always" line-height="0pt"><fo:leader line-height="0pt"/></fo:block><fo:block end-indent="0pt" keep-with-next.within-column="always" line-height="19.7pt" space-after="3pt" space-before="12pt" start-indent="0pt" text-align="center" text-indent="0pt"><fo:inline font-family="Arial, sans-serif" font-size="16pt" font-weight="bold">My Shopping List</fo:inline></fo:block><fo:block line-height="14.75pt"><fo:leader line-height="14.75pt"/></fo:block><fo:block line-height="14.75pt"><fo:leader line-height="14.75pt"/></fo:block><fo:list-block><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Milk</fo:inline></fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Eggs</fo:inline></fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Bread</fo:inline></fo:block></fo:list-item-body></fo:list-item><fo:list-item><fo:list-item-label end-indent="0pt" start-indent="18pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Symbol" font-size="18pt">•</fo:inline></fo:block></fo:list-item-label><fo:list-item-body end-indent="0pt" start-indent="36pt"><fo:block line-height="22.15pt" text-align="start" text-indent="0pt"><fo:inline font-family="Times Roman, serif" font-size="18pt">Snacks</fo:inline></fo:block></fo:list-item-body></fo:list-item></fo:list-block></fo:flow></fo:page-sequence></fo:root>
<?xml version="1.0" encoding="ISO-8859-1"?>
<svg contentScriptType="text/ecmascript" width="612.0"
xmlns:xlink="http://www.w3.org/1999/xlink" zoomAndPan="magnify"
contentStyleType="text/css" height="792.0"
preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg"
version="1.0">
<g id="Page-1" style="font-family:sanserif;font-size:12"
transform="translate(0,0.0)">
<rect width="612.0" x="0.0" height="792.0" y="0.0"
style="fill:none;stroke:black"/>
<text x="258.84" y="83.54999" style="font-size:16.0;font-weight:bold">
My
</text>
<text x="287.289" y="83.54999" style="font-size:16.0;font-weight:bold">
Shopping
</text>
<text x="367.266" y="83.54999" style="font-size:16.0;font-weight:bold">
List
</text>
<text x="103.05" y="139.97498" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="139.97498"
style="font-family:Times Roman;font-size:18.0">
Milk
</text>
<text x="103.05" y="163.125" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="163.125"
style="font-family:Times Roman;font-size:18.0">
Eggs
</text>
<text x="103.05" y="186.27502" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="186.27502"
style="font-family:Times Roman;font-size:18.0">
Bread
</text>
<text x="103.05" y="209.42499" style="font-family:Symbol;font-size:18.0">
?
</text>
<text x="121.05" y="209.42499"
style="font-family:Times Roman;font-size:18.0">
Snacks
</text>
<a xlink:href="#svgView(viewBox(0, 0.0, 612, 792))" xlink:type="simple"
xlink:actuate="onRequest" xlink:show="replace"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="306.0" x="0.0" height="792.0" y="0.0"
style="fill:blue;visibility:hidden"/>
</a>
</g>
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]