|
Could not "create" Adobe Type 1 font: msg#00149java.lib.itext.general
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.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | easy way of merging different pages, Chadha, Jaideep |
|---|---|
| Next by Date: | CellSpacing in PdfPTables, Benjamin Boigienman |
| Previous by Thread: | easy way of merging different pages, Chadha, Jaideep |
| Next by Thread: | Re: Could not "create" Adobe Type 1 font, Paulo Soares |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |