[iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread mister bean
Creating BaseFonts from .ttc files give spurious DocumentException errors. This appears to be caused by this error at the end of line 567 of com.lowagie.text.pdf.BaseFont.java: [...] || nameBase.toLowerCase().indexOf(.ttc,) The literal for the ending of the file name should be .ttc not .ttc,

Re: [iText-questions] what is difference between string.slice() and string.substring()

2008-12-27 Thread mister bean
You've posted this query in the wrong forum. This forum handles questions related to the iText library. As to your specific questions, Google is your friend. ---mr. bean rajeshkarka wrote: Hi All, what is difference between string.slice() and string.substring(). For both

Re: [iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread Xavier Le Vourch
mister bean wrote: Creating BaseFonts from .ttc files give spurious DocumentException errors. This appears to be caused by this error at the end of line 567 of com.lowagie.text.pdf.BaseFont.java: [...] || nameBase.toLowerCase().indexOf(.ttc,) The literal for the ending of the file name

Re: [iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread mister bean
Creating a BaseFont for file cambria.ttc (which ships with Vista) generates a DocumentException. The specific code is: BaseFont bf = BaseFont.createFont( fontFilename, winansi, BaseFont.NOT_EMBEDDED); where fontFilename is the full path and filename for cambria.ttc Note that this code works

Re: [iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread Benjamin Podszun
Hi. On Sat, 27 Dec 2008 21:41:41 -0800 (PST), mister bean abinst...@pacificdataworks.com wrote: Creating a BaseFont for file cambria.ttc (which ships with Vista) generates a DocumentException. The specific code is: BaseFont bf = BaseFont.createFont( fontFilename, winansi,

Re: [iText-questions] Found bug in BaseFont's handling of .ttc fonts

2008-12-27 Thread mister bean
I totally missed that. Thanks very much. ---mr. bean Benjamin Podszun wrote: Hi. On Sat, 27 Dec 2008 21:41:41 -0800 (PST), mister bean abinst...@pacificdataworks.com wrote: Creating a BaseFont for file cambria.ttc (which ships with Vista) generates a DocumentException. The specific