Hey FOP Gurus,


am working with the excellent FOP 2.2 and wanted to include some SVG. I had
no specific font set on that svg:text tag and FOP seemed to autoselect Arial
(seems to be default since a test with command line FOP also logs Arial
being tried to be used).

The thing is that if i output this into Postscript, the Output looks like
this and several characters are replaced with a "Character unknown" Char:



/Arial-BoldMT 6 F

1 GC


[4.662 1.998 3.66 1.662 3.336 1.662 0] xshow



If i add the attribute "font-family" with value "Helvetica" to the svg:text
node the printer likes the ouput aka output is ok:

<svg:text font-family="Helvetica" style="font-size:6px;font-weight:bold;"
x="-24" y="7" fill="white" text-anchor="middle"
transform="rotate(270)"><xsl:value-of select="WARNING"/></svg:text>


is translated into:



/Helvetica-Bold 6 F

1 GC


[4.668 1.998 3.666 1.668 3.336 1.668 0] xshow



My FOP Font Config for Postscript looks like this:


<font kerning="yes" embed-url="trueType/arial.ttf">

                <font-triplet name="Arial" style="normal" weight="normal"/>


<font kerning="yes" embed-url="trueType/ariali.ttf">

                <font-triplet name="Arial" style="italic" weight="normal"/>


<font kerning="yes" embed-url="trueType/arialbi.ttf">

                <font-triplet name="Arial" style="italic" weight="bold"/>


<font kerning="yes" embed-url="trueType/arialbd.ttf">

                <font-triplet name="Arial" style="normal" weight="bold"/>




Is this a problem of the Arial font, or do i need to investigate somewhere


Best Regards





Alphasoft Software Dienstleistungs- und Datenverarbeitungs GmbH


Reply via email to