OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] org.apache.fop.apps.FOPException: Font configurationwithout metric-url

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:
    <font kerning="yes" embed-url="path/to/MyFont.ttf">
        <font-triplet name="MyFont" style="normal" weight="normal"/>

You can even rely on a more automatic (but sometimes less reliable) 
detection mechanism by just specifying directories where to look up for 
    <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@.


[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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]