Looks fine to me. See also: 
http://xmlgraphics.apache.org/fop/1.0/fonts.html#substitution

Instead of the two substitutions, I think you should be able to say it
in one:

<substitution>
  <from font-family="Helvetica"/>
  <to font-family="FreeSans"/>
</substitution>

But if I guess correctly, you ran into some kind of problem. Note that
the default FOP font-family is "sans-serif,Symbol,ZapfDingbats", so if
your idea is to map from the default font to FreeSans, you'll have to
use "sans-serif", not "Helvetica".


On 20.09.2011 20:20:59 Rob Sargent wrote:
> Is this not the correct approach for font substitution?
> 
> > <fop version="1.0">
> > 
> >     <!-- Base URL for resolving relative URLs -->
> >     <base>.</base>
> > 
> >     <font-base>.</font-base>
> >     <fonts>
> >         <substitutions>
> >             <substitution>
> >                 <from font-family="Helvetica" font-weight="normal" 
> > font-style="normal"/>
> >                 <to font-family="FreeSans" font-weight="normal" 
> > font-style="normal"/>
> >             </substitution>
> >             <substitution>
> >                 <from font-family="Helvetica" font-weight="bold" 
> > font-style="normal"/>
> >                 <to font-family="FreeSans" font-weight="bold" 
> > font-style="normal"/>
> >             </substitution>
> >         </substitutions>
> >     </fonts>
> > 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to