Give the package path to the font "foo/bar/baz/fonts/arial.ttf". You
must register the fonts one by one, registerDirectory() only works with
real files.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of CG
> Sent: Tuesday, September 12, 2006 9:48 PM
> To: Bruno Lowagie; Post all your questions about iText here
> Subject: Re: [iText-questions] distributing true type fonts
> 
> I'm not sure which directory to register. Is it the directory 
> in which the
> jarfile resides? 
> FontFactory.registerDirectory("/opt/myApplication/lib");
> ...or...
> Is it the actual jarfile?
> FontFactory.registerDirectory("/opt/myApplication/lib/appFonts.jar");
> ...or...
> Does it have something to do with the package directory structure?
> "foo.bar.baz" is my package ... The directory in the jar 
> where the fonts live
> is "foo/bar/baz/fonts" ... I register the font directory like this :
> FontFactory.registerDirectory("foo/bar/baz/fonts");
> 
> Am I way off?
> 
> 
> --- Bruno Lowagie <[EMAIL PROTECTED]> wrote:
> 
> > CG wrote:
> > > If I wanted to include several special true type fonts 
> for use in my
> > > application within a separate jar or within my 
> application's jar, how would
> > I
> > > tell iText where to look?
> > 
> > If you are allowed to distribute the font,
> > put them in your jar and register the directory
> > in the FontFactory object.
> > br,
> > Bruno
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> --------------------------------------------------------------
> -----------
> 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
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
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