> -----Original Message----- > From: kamischa [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 19, 2006 9:55 AM > > Hello, > i am using fop-0.92beta on a winxp system from commandline. > I want to use arial.ttf font in a document and convert to pdf. > > I read the documentation and did the following steps. > > - Creating the metric xml file from the arial.ttf file. > OK no erros, arial.xml and arial.ttf files exists in > directory c:\fop-0.92beta\ > > - Editing the userconfig.xml file in directory > c:\fop-0.92beta\ <font-base>c:\fop-0.92beta\</font-base> > <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> > <font-triplet name="Arial" style="normal" > weight="normal"/> </font> > > -In my c:\fop-0.92beta\test.xsl file I use the font <fo:block > font-size="18pt" > font-family="Arial" > font-style="normal" > font-weight="normal"> > <xsl:value-of select="."/> > </fo:block> > > -Start from commandline with > c:\fop-0.92beta\fop -c userconfig.xml -xml test.xml -xsl > test.xsl -awt I always get the error message : Warning font -----------^^^^
Hi, in the config file, you have to define fonts set for each renderer (see [1]). AFAIK, in case of AWT renderer, I think you cannot use alternate fonts (but I 'm not sure) I guess you have set font config for the PDF renderer, check your config file. You can try your command with PDF renderer, that should work Pascal > 'Arial,normal,400' not found > > I cant find an error please help. > Without the arial font there is no error. > Perhaps somebody can give me an complete working example. [1] http://xmlgraphics.apache.org/fop/0.92/configuration.html#renderers --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]