Hi Khar,

Firstly, the metrics XML file is deprecated in FOP 0.95 so it's not
necessary, secondly, take a look at the font embedding documentation (
http://xmlgraphics.apache.org/fop/trunk/fonts.html) and it might give you a
better idea of how to configure FOP. Normal issues are users are forgetting
to add the "<font-base>" tag to their fop.xconf.

Hope that helps,

Mehdi

On 20 March 2012 08:12, Khar <[email protected]> wrote:

>
> Hi all.
>
> We are using fop 0.95 and tomcat 5.5. We are getting an exception:
>
> Failed to resolve font with embed-url
> 'times.ttf'|org.apache.fop.apps.FOPException: Failed to resolve font with
> embed-url 'times.ttf'
>        at org.apache.fop.util.LogUtil.handleError(LogUtil.java:38)
>        at
>
> org.apache.fop.fonts.FontInfoConfigurator.getFontInfo(FontInfoConfigurator.java:212)
>        at
>
> org.apache.fop.fonts.FontInfoConfigurator.addFonts(FontInfoConfigurator.java:168)
>        at
>
> org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.java:100)
>        at
>
> org.apache.fop.render.PrintRendererConfigurator.buildFontList(PrintRendererConfigurator.java:106)
>        at
>
> org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:129)
>        at
> org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:165)
>        at
>
> org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:181)
>        at
> org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:73)
>        at
> org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)
>        at
> org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:102)
>        at
>
> org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:359)
>        at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:105)
>        at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)
>        at org.apache.fop.apps.Fop.<init>(Fop.java:79)
>        at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)
>
> Restarting tomcat with clearing work directory helps, but problem comes
> back
> after some time.
>
> This is how we declare this font in our fop.xconf:
>
>  < font metrics-url="times.xml" kerning="yes" embed-url="times.ttf"> ... <
> /font>
>
> Font files and fop.xconf are in the same directory.
> Did anybody has similar problem?
> --
> View this message in context:
> http://old.nabble.com/FOP-0.95-font-problem-tp33537033p33537033.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to