You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Oliver Müller <oe...@gmail.com> on 2006/11/06 00:09:28 UTC
cannot load font problem
Hi folks,
I'm getting the following exeption if I try to use the Font "Minion"
within my XSL-Stylesheet:
java.lang.RuntimeException: Cannot load font: failed to create Source
from metrics file conf\minion.xml
at org.apache.fop.fonts.LazyFont.load(LazyFont.java:75)
at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:183)
at org.apache.fop.fonts.Font.getAscender(Font.java:66)
at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:76)
... and so on ...
I have created a correct metrics file using org.apache.fop.fonts.apps.PFMReader
Does anyone have an idea why this is happening ?
thanks for your help,
Olli
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: cannot load font problem
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
The relative URI "conf\minion.xml" could not be resolved to an absolute
URL or resource. Most probably you didn't set a base URL on the user
agent (or font base URL on the FopFactory or the respective values in
the configuration). Or the base URL is wrong.
See http://xmlgraphics.apache.org/fop/latest/embedding.html#fop-factory
and http://xmlgraphics.apache.org/fop/latest/configuration.html
On 06.11.2006 00:09:28 Oliver Müller wrote:
> Hi folks,
>
> I'm getting the following exeption if I try to use the Font "Minion"
> within my XSL-Stylesheet:
>
> java.lang.RuntimeException: Cannot load font: failed to create Source
> from metrics file conf\minion.xml
> at org.apache.fop.fonts.LazyFont.load(LazyFont.java:75)
> at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:183)
> at org.apache.fop.fonts.Font.getAscender(Font.java:66)
> at org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:76)
>
> ... and so on ...
>
> I have created a correct metrics file using org.apache.fop.fonts.apps.PFMReader
>
> Does anyone have an idea why this is happening ?
>
> thanks for your help,
> Olli
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org