bruno wrote:
Darryl Miles wrote:

I have taken a look at the documentation for registering font file locations with FontFactory, but I can't see any way to introduce a resource URL to it. This would allow bundling of fonts files into JARs.

Are you sure you are using the correct path?
Because iText is shipped with AFM files in the iText.jar
that are read as a resource exactly the way you describe.
br,
Bruno

With what API method ?

I have looked at the examples and they clearly indicate a file system path is used in FontFactory#register(String path). This is backed up by the API method description.

No where does it indicate this is (or can be) a resource path (which is distinctly different from a File System path) since its the ClassLoader's job to find a resource by name but an Operating System's job to find a resource by filesystem path. The two name spaces are in seperate domains, so I am expecting a different API call to address each.

Thanks for your reply,

Darryl


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to