I've successfully created a PDF document using iText with the BaseFont.HELVETICA and wanted to use other fonts. When I used the following code to access another font on my machine, it created a NullPointerException. I am using Windows NT and JDK 1.2.2 built into VisualAge for Java. Is there a workaround for this error so that I could use other windows fonts?
Thank you, Jo Ann Cramer Code: BaseFont bf = BaseFont.createFont("C:\\WINNT\\Fonts\\pala.ttf", BaseFont.WINANSI, BaseFont.EMBEDDED); Error: java.io.InputStreamReader Reader(Object lock) - NullPointerException (lock = null) java.io.InputStreamReader (InputStream in, ByteToCharConverter btc) (in = null & btc = ByteToCharConverter: ISO8859_1) java.io.InputStreamReader (InputStream in, String enc) (in = null & enc = 8859_1) Properties.load(InputStream inStream) (inStream = null) ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions