|
Re: Could not "create" Adobe Type 1 font: msg#00152java.lib.itext.general
You need an AFM not a PFM. Best Regards, Paulo Soares ----- Original Message ----- From: "Premysl Dedic" <dedic@xxxxxxxxxxxxxxxxxx> To: <itext-questions@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, June 10, 2003 10:23 Subject: [iText-questions] Could not "create" Adobe Type 1 font > Hi, > it seems I do not understand how to use Adobe Type 1 font. I put both > PFM and PFB files into app's working directory, but when I do this: > > BaseFont bfText = BaseFont.createFont("FONT.PFM", "CP1250", > BaseFont.EMBEDDED); > > I receive an exception: > Font 'FONT.PFM' with 'CP1250' is not recognized. > com.lowagie.text.DocumentException: Font 'FONT.PFM' with 'CP1250' is not > > recognized. > at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) > at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) > .... > > When I put (some other) TTF font into the same directory it works: > BaseFont bfText = BaseFont.createFont("FONT.TTF", "CP1250", > BaseFont.EMBEDDED); > But Type 1 not :-( > > Any idea? > Thanks. > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > iText-questions mailing list > iText-questions@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: CellSpacing in PdfPTables, Paulo Soares |
|---|---|
| Next by Date: | Re: RE: (no subject), Paulo Soares |
| Previous by Thread: | Could not "create" Adobe Type 1 font, Premysl Dedic |
| Next by Thread: | CellSpacing in PdfPTables, Benjamin Boigienman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |