You can register a font from a jar, just include the full resource path.
iText will look first for a file path and if not found will try to load it
as a resource. You'll need itext-paulo-108 for it.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 17:30
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] is it possible to register fonts when the
> .ttf file exists in a .ear or .war file (using URL)?
> 
> Hello,
>    I've begun using iText to create reports for a new internet site with
> much success.  However, I've run into an issue of registering fonts within
> my archive.   I'm deploying a j2ee app to weblogic, and when I deploy an
> exploded app, I can call application.getRealPath() within my jsp page and
> determine the location of my ttf files to page to the FontFactory class.
> However, my application is deployed to a third party host in a .ear
> format.
> In that format, there is no file system path to the font files as they
> reside only within the ear ( or in a temporary location that I cannot
> reliably determine programmatically ).
> 
> My question is this:   Is there any way to register ttf files within a
> jar,ear, or war?  I see discussions about loading asian fonts from within
> a
> jar.  Does such a method exist for other ttf files?   I've looked over the
> code for FontFactory and BaseFont, and they all seem to pass a string
> representing a filesystem path.  If there is not, is that a feature I
> could
> request (the ability to pass a java.net.URL object to the
> FontFactory.register() method?
> 
> By the way, fantastic library.  My thanks to the author's hard work.
> 
> Thanks,
> Perry Tew
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to