By Date: <-- -->
By Thread: <-- -->

Registering resource URL locations of font files within JARs ?




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. The example cites how to bundle additional character sets and mappings for asian fonts.


When I use a hard path reference that works, but it doesn't allow bundling of fonts within a container managed application.


I'm looking for generic API usage that would effectively work like this:

String resDir = "my/package/path/name";
URL url = getClass().getClassLoader().getResource(resDir + "/" + "font.ttf");
FontFactory.register(url);



Thanks

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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions