Thanks, again. We immediately ran into trouble so I got around it by getting the 'windir' environment variable and using that as the beginning of the path. So far it has been working. Fortunately we only have to worry about Windows machines at this point (it is an internal app).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Lowagie Sent: Friday, May 09, 2008 2:10 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Which Font to Use Wagoner, Mark wrote: > Thanks, Bruno!! > > My only concern is the hard-coded path to the font file. We have some > users who are still on older machines and they don't have a c:\windows > folder. Is there any way around that? If you are building a client side application, how are you ever going to know if and where the font are on the client machine? Class FontFactory does a fair attempt looking for fonts in the 'usual font directories' on windows, linux and Mac, but there is NO GUARANTEE that arialuni.ttf is present on the client machine. So your only option will be to ship the font with your application, for instance inside your jar. Make sure you have the right to ship the font (maybe you'll have to buy a license for the font you're using). br, Bruno ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
