I created a PDF with all the font characters without any problems, not that it 
woud matter, just reading the font would cause the exception. It looks like a 
file access problem or something else particular to your environment. 

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Schalück, Elmar
> Sent: Tuesday, June 26, 2007 11:25 AM
> To: [email protected]
> Subject: [iText-questions] Problems with reading a TTF font
> 
> Hi,
> anyone got a similar problem?
> I am embedding a free TTF font 
> (DejaVu-Mono,http://dejavu.sourceforge.net/) read in via 
> resources in a web environment.
> In some strange situations (not within Eclipse-DIE, but 
> within ant unit tests from command line) I have a 
> java.lang.NegativeArraySizeException thrown from 
> TrueTypeFont.readFormat4 in the line
> int glyphId[] = new int[table_lenght / 2 - 8 - segCount * 4];
> BTW, table_lenght was odd, not even.
> 
> Don't know whats the problem.
> Thanks for any hints
> Elmar
> 
> Mit freundlichem Gruß
> 
> Dr. Elmar Schalück
> 
> Produkte und Lösungen
> Leiter Research und Professional Services
> 
> Erfolg durch Lösungen
> 
> Ceyoniq Technology GmbH
> 
>  
> 
> Boulevard 9 
> 
> 33613 Bielefeld                         
>                              
> Tel. +49 (0)5 21/93 18-2150 
> Fax +49 (0)5 21/93 18 88-2150
> E-Mail: [EMAIL PROTECTED]
> 
> www.ceyoniq.com <http://www.ceyoniq.com/> 
> 
> ___________________________
> Geschäftsführer: André Ferlings
> Amtsgericht Bielefeld
> HRB 37641
> USt-IdNr.:  DE813503229


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to