You have to put the path to the AFM and if you want to embedded it you need the PFB.
Best Regards, Paulo Soares ----- Original Message ----- From: "Oscar Diaz Blanco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 02, 2004 19:22 Subject: [iText-questions] Type 1 Fonts > Hello all, here is my scenario and what I want to do. > > I am trying to use Postscript fonts but I'm unable to do so. Here is > the code: > > BaseFont frutiger = BaseFont.createFont(FRUTIGER_ROMAN, > BaseFont.CP1252, BaseFont.EMBEDDED); > Font FRUTIGER_BLACK_12 = new Font(frutiger, 12); > > FRUTIGER_ROMAN is the name of a static String variable: > > public static String FRUTIGER_ROMAN = "FrutigerLT-Roman"; > > but I'm getting an error saying it can't find the font with Cp1252 > encoding > > Maybe is the encoding, maybe is the font. > > I'm on Mac OS X 10.3.3 with Java 1.4.2. The font is from Adobe and is a > mac file. I also have the pfm but not the PFB. Can I use this file with > your wonderful framework? Do I have to convert it? It has > AdobeStandardEncoding. > > I converted the font to truetype using unicode encoding but can get the > EURO symbol displayed from the data on my database. > > Can I set the encoding of a BaseFont to Unicode? > > Thanks a lot > Oscar > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
