Which version of fop are you using and what operation system? Some info regarding font substitution can be find at http://xmlgraphics.apache.org/fop/1.1/fonts.html#substitution ,assuming you are using FOP 1.1
Thanasis > Date: Tue, 29 Oct 2013 15:29:48 +0100 > From: [email protected] > To: [email protected] > Subject: Re: Problems with font substitution > > Hi! > > I'm not sure, but as i read the documentation: font substitutions may > should declare in top level <fonts> node in the configuration, not in > renderers descendant fonts node. > Try it, and feedback result! > > Bye, Csaba > > 2013-10-29 12:39 keltezéssel, Mauro Giacomini írta: > > Hello all, > > I'm working on a java application with apache-fop to transform a > > custom xml to a pdf (with a xsl of course). > > I also write a xml configuration file, but I am not able to do a font > > substitution > > This is the snippets of conf file > > <directory>my_custom_font_directory</directory> > > ... > > <substitutions> > > <substitution> > > <from font-family="PrestigeEliteStd" font-weight="700..900" > > font-style="normal"/> > > <to font-family="Courier" font-weight="700" font-style="normal"/> > > </substitution> > > </substitutions> > > In the output I see this line: > > LoggingEventListener: 94 - Font "PrestigeEliteStd,normal,900" not > > found. Substituting with "PrestigeEliteStd,normal,400". > > Seem that the configuration is not accessed > > What can I do? > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
