On Monday 22 October 2007 12:17:37 pm Steve Ebersole wrote:
> That pointed me to the class org.apache.fop.render.DefaultFontResolver,
> implementing org.apache.fop.fonts.FontResolver.  Is there a way to specify
> the FontResolver to use?  That would be nice and clean, imho.
>
> If not, yikes.  I'll have to look through this code...
>
This might do it:

                                fopUserAgent.setRendererOverride(
                                                new PDFRenderer() {
                                                        public void 
setupFontInfo(FontInfo inFontInfo) {
                                                                ...
                                                        }
                                                }
                                );

I'll play around with that and see how I make out...

> On Monday 22 October 2007 11:45:38 am Adrian Cumiskey wrote:
> > Hi Steve,
> >
> > I think the best way for you to achieve this is to extend the
> > RendererConfigurator implementing class for the renderer you wish to
> > programmatically change the fonts for.  You will then need to update the
> > instance reference to your new class in the getConfigurator() method in
> > the corresponding RendererMaker.  Both the implementing RendererMaker and
> > RendererConfigurator can be found in packages org.apache.fop.render.xxx
> > (where xxx is the name of the implementing renderer).
> >
> > Hope this helps point you in the right direction,
> >
> > Adrian.
> >
> > Steve Ebersole wrote:
> > > Following http://xmlgraphics.apache.org/fop/0.94/fonts.html,
> > > http://xmlgraphics.apache.org/fop/0.94/configuration.html and
> > > http://xmlgraphics.apache.org/fop/0.94/embedding.html#config-internal,
> > > I could not see a mechanism for programatically telling FOP about
> > > fonts.
> > >
> > > Can anyone show me how this can be achieved?
> > >
> > > Thanks,
> > > Steve
> > >
> > > ---------------------------------------------------------------------
> > > 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]



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

Reply via email to