docbook-apps

  • 1.  org.apache.fop.apps.FOPException: Font configuration without metric-url

    Posted 02-18-2008 13:41
    Hi Docbook gurus

    I am experiencing an error when trying to compile my .fo files into pdf
    via FOP-0.94. I have configured the fonts (re-created the font metrics
    files with fop-0.94), registered them in the xconf file and receive this
    error when processing:
    "org.apache.fop.apps.FOPException: Font configuration without
    metric-url"

    I have also doubled checked each of the font locations and they are
    proven to be true to the location specified in the xconf file. The
    fonts registered are the same fonts which have been used to process the
    documents in version fop-0.20.5.

    Any help would be appreciated.
    Andrew



  • 2.  Re: [docbook-apps] org.apache.fop.apps.FOPException: Font configuration without metric-url

    Posted 02-18-2008 15:13
    Hi Andrew,

    Since your question is very FOP specific, I’d suggest you to use the
    fop-user@ mailing list [1] in the future.

    With FOP 0.94 you no longer need to generate XML metrics files. You can
    simply register your font like this:



    You can even rely on a more automatic (but sometimes less reliable)
    detection mechanism by just specifying directories where to look up for
    fonts:
    <directory recursive="true">/path/to/font/directory/</directory>
    See [2] for more details.

    If you still have problems please post your config file on fop-user@.

    HTH,
    Vincent

    [1] http://xmlgraphics.apache.org/fop/maillist.html#fop-user
    [2] http://xmlgraphics.apache.org/fop/0.94/fonts.html#register

    Andrew Richardson wrote:
    > Hi Docbook gurus
    >
    > I am experiencing an error when trying to compile my .fo files into pdf
    > via FOP-0.94. I have configured the fonts (re-created the font metrics
    > files with fop-0.94), registered them in the xconf file and receive this
    > error when processing:
    > "org.apache.fop.apps.FOPException: Font configuration without
    > metric-url"
    >
    > I have also doubled checked each of the font locations and they are
    > proven to be true to the location specified in the xconf file. The
    > fonts registered are the same fonts which have been used to process the
    > documents in version fop-0.20.5.
    >
    > Any help would be appreciated.
    > Andrew


    --
    Vincent Hennebert Anyware Technologies
    http://people.apache.org/~vhennebert http://www.anyware-tech.com
    Apache FOP Committer FOP Development/Consulting