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 pa...@ubs.com on 2004/04/23 09:53:31 UTC

RE: Important problem with font and directory, config.xml and userconfig.xml

Hi Chris

thanks a lot for u informations, but...
I'm really surprised - I have a userconfig.xml ... and that's not all...
for debuging, I've removed the config.xml und userconfig.xml and the Errors are the same... ???!! How is it possible??? There are no other config.xml and userconfig.xml files in other direct.

thanks a lot

-----Original Message-----
From: Chris Bowditch [mailto:bowditch_chris@hotmail.com]
Sent: Donnerstag, 22. April 2004 15:12
To: fop-user@xml.apache.org
Subject: Re: Important problem with font and directory....


patrick-peter.mannhart@ubs.com wrote:

> Hi @all
> 
> I have some problems with my embeded Fonts - it means, fop dosen't found 
> my font-xml- and font-ttf-file...
> 
> So the error-message looks like
> 
> Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
> [INFO] building formatting object tree
> [INFO] setting up fonts
> [INFO] [1]
> [ERROR] unknown font Frutltit,italic,bold so defaulted font to any
> [ERROR] unknown font Frutltit,italic,bold so defaulted font to any
> [ERROR] defaulted font to any,normal,normal
> 
> How is it possible to display, where (full path) fop is looking for the 
> setting-files? (ex. FRUTLTIT.xml and Frutltit.ttf) ?

These messages do not mean FOP cant find the metrics files, it means it cant 
find a font-triplet like:

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

in your userconfig.xml file. If you are running FOP from command line make 
sure you have specified a user config file using:

-c <userconfig.xml>

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Important problem with font and directory, config.xml and userconfig.xml

Posted by "J.Pietschmann" <j3...@yahoo.de>.
patrick-peter.mannhart@ubs.com wrote:
> thanks a lot for u informations, but... I'm really surprised - I have
> a userconfig.xml ... and that's not all... for debuging, I've removed
> the config.xml und userconfig.xml and the Errors are the same...
> ???!! How is it possible???

That's no surprise: the error message says FOP can't find a declaration
for  Frutltit,italic,bold in either the userconfig.xml or the
systemconfig, therefore removing the file(s) is unlikely to improve
the situation.

You have to declare the triples in your userconfig.xml, as outlined
in
  http://xml.apache.org/fop/fonts.html
and tell FOP to actually use the modified userconfig.xml by either
using the -c parameter for the CLI or creating an Options object
for embedded FOP usage, as outlined on the respective pages on the
FOP site.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org