Hi Mehdi,

> > I've defined my non-system font in manifest.mf file:
> >
> > Name: me/jan/resources/fonts/droid-sans.ttf
> > Content-Type: application/x-font
> >
> > I am getting this message:
> > WARNING: Font "Droid Sans,normal,400" not found. Substituting with
> > "any,normal,400".

> Most of the necessary information can be found
> (http://xmlgraphics.apache.org/fop/trunk/fonts.html) 
> on the FOP website.

thanks for the link to the trunk doc. I've used 1.0 version where the info
about cache was missing. Now it is more clear to me what is happening.

Looking into the source I've found the possible reason of my problem:
org.apache.xmlgraphics.util.ClasspathResource.getClassLoadersForResources()

This code searches for manifests in all the jar files in lib folder. But as
my code (library) is 'all in one' together with resources, it is not in lib
folder. After build it appears in 'dist' folder. So my manifest isn't even
touched.

So I am right and because of this limitaton I'll have to split resources
into a separate JAR library and reference it in my core library?

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to