Hi all,
I am using fop-0.92 together with cocoon-2.1.9. I want the document is
printed in arial font. The metric font I generated. If I generate a pdf
document at the command line, the document is shown in the right font.

fop  -c fop.xconf -xml source.xml -xsl template.xsl test.pdf

But if I try to print it out with
fop  -c fop.xconf -xml source.xml -xsl template.xsl -print

I get the warning
WARNUNG: Font 'Arial,normal,400' not found. Substituting with default font.
23.01.2007 10:05:28 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNUNG: Font 'Arial,normal,700' not found. Substituting with default font.

and the the documentis printed in a wrong font.

The fop.xconf looks like the following:
....
<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="file:////home/myHome/arial.xml" kerning="yes"
embed-url="file:////home/myHome/arial.ttf">
         <font-triplet name="Arial" style="normal" weight="normal"/>
       </font>

    <font metrics-url="file:////home/myHome/arialbd.xml" kerning="yes"
embed-url="file:////home/myHome/arialbd.ttf">
         <font-triplet name="ArialB" style="normal" weight="bold"/>
       </font>

     <!-- 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/X-fop-print">
     <!-- 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-->
     <fonts>
           <font metrics-url="file:////home/myHome/arial.xml"
kerning="yes" embed-url="file:////home/myHome/arial.ttf">
         <font-triplet name="Arial" style="normal" weight="normal"/>
       </font>
       <font metrics-url="file:////home/myHome/arialbd.xml"
kerning="yes" embed-url="file:////home/myHome/arialbd.ttf">
         <font-triplet name="ArialB" style="normal" weight="bold"/>
       </font>
     </fonts>

   </renderer>
...

The metric font file and the ttf font file are locating in the given
directory.

Is there anybody could give a hint why the document cannot be printed in
the right font?

Regards

--
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]

--
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to