eborisow <eborisow <at> yahoo.com> writes:

> 
> 
> Alias John Brown wrote:
> > 
> > 
> > "It is currently not possible to easily configure fonts from Java code."
> > 

> 
> John,
> 
> Thanks for the reply.  I have also tried specifying the config file using
> the method in the docs.  Here is what I tried:
> 
>             DefaultConfigurationBuilder cfgBuilder = new
> DefaultConfigurationBuilder();
>             Configuration cfg = cfgBuilder.buildFromFile(new File(baseDir,
> "Local\\personal\\durkan\\projects\\fop\\new-font.conf.xml"));
>             fopFactory.setUserConfig(cfg);
> 
> This gives me the same result.  The fonts are not available.  So, I am
> probably doing something wrong.
> 
> Thanks,
> Eric

1) Are you sure that the new config file was found? If you rename it, does
   the program throw an exception, or silently fail and set cfg to NULL?
2) Try using font auto-detection instead of explicitly declaring Verdana:

<renderer mime="application/pdf">
  <filterList>
    <!-- blah blah -->
  </filterList>
  
  <fonts>
    <auto-detect/>
  </fonts>

</renderer>





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

Reply via email to