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 Dirk Bromberg <di...@familie-bromberg.de> on 2006/04/28 17:19:43 UTC

Font Problem -> Cannot load font

Hi all,

with the 0.92 release i'get this error:

java.lang.RuntimeException: Cannot load font: failed to create Source 
from metrics file MyFont.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)

with 0.20.5 it works ...

where can i search?

the metrics it generated with "-enc ansi" from an ttf font file.

Thanks

Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font Problem -> Cannot load font

Posted by Dirk Bromberg <di...@familie-bromberg.de>.
Thanks for answer,

i'll have a closer look at it on Tuesday.

btw. the result of the new fop looks great at this moment...

i've a rendering component which uses "0.20.5" (for redistribute) and 
xep (for offset printing) and now i don't want to customize 2 versions 
of the stylesheets, so i'm going to switch to 0.92b because it can use 
the same input as xep :-) at it seems working... without fonts ;-)


Dirk

Jeremias Maerki wrote:
> FOP can't find MyFont.xml. Maybe the file isn't there, or the base
> directory is not correct or something like that.
>
> On 28.04.2006 17:19:43 Dirk Bromberg wrote:
>   
>> Hi all,
>>
>> with the 0.92 release i'get this error:
>>
>> java.lang.RuntimeException: Cannot load font: failed to create Source 
>> from metrics file MyFont.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)
>>
>> with 0.20.5 it works ...
>>
>> where can i search?
>>
>> the metrics it generated with "-enc ansi" from an ttf font file.
>>     
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Font Problem -> Cannot load font

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
FOP can't find MyFont.xml. Maybe the file isn't there, or the base
directory is not correct or something like that.

On 28.04.2006 17:19:43 Dirk Bromberg wrote:
> Hi all,
> 
> with the 0.92 release i'get this error:
> 
> java.lang.RuntimeException: Cannot load font: failed to create Source 
> from metrics file MyFont.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)
> 
> with 0.20.5 it works ...
> 
> where can i search?
> 
> the metrics it generated with "-enc ansi" from an ttf font file.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org