Rakesh Patel wrote:

Hi,

I'm new to iText so please forgive my question if its obvious.

I am developing a pdf that needs to use Arial font. I saw previous postings about finding the ttf file and registering it.

However, my app runs on both windows and unix so hard coding a directory path is not easy. Has anyone got a work around? Are ttf files on windows and Solaris the same and interchangeable?

The ttf files used for Windows and Solaris are the same.
One way to deal with the problem registering the font is
to put them in the jar (war, ear) file of your application.
Another way is to register all font directories (make sure
that arial.ttf is in the proper directory on every system).
Or you can put the path to the specific ttf in a properties file.

Packaging the font is in most cases the best solution
(if you are allowed to do so; some fonts are propriety).
br,
Bruno


-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to