You'll have to embedd a font with the characters. The build-in fonts don't have the lithuanian characters.
 
Paulo 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Svetlana Stelmokaite
Sent: Tuesday, June 06, 2006 11:24 AM
To: [email protected]
Subject: [iText-questions] HAVE A PROBLEM, PLEASE HELP

I use fonts:
 
Font lt = FontFactory.getFont(BaseFont.COURIER,BaseFont.CP1257,10);
Font ltb = FontFactory.getFont(BaseFont.COURIER_BOLD,BaseFont.CP1257,10);
 
Table tbl = new Table(2,1)
Cell cell = new Cell(new Phrase(txt1, lt)); // txt1 - some text
table.addCell(cell);
cell = new Cell(new Phrase(txt2, ltb)); // txt2 - some text
table.addCell(cell);
 
A  problem is:
 
in some computers it works OK (I mean in PDF document,than I read it with Acrobat Reader, all lithuanian characters are correct and in document fonts properties I see that True Type fons was formed), but in some computers it doesn't work -lithuanian characters are incorrect  and
document fonts properties show Type 1.
 
I've tried:
Font lt = FontFactory.getFont(BaseFont.COURIER,BaseFont.CP1257,true,10,Font.NORMAL);
Font ltb = FontFactory.getFont(BaseFont.COURIER,BaseFont.CP1257,true,10,Font.BOLD);
 
BaseFont bf = BaseFont.createFont(BaseFont.COURIER, BaseFont.CP1257, true);      
Font lt = new Font(bf, 10, Font.NORMAL);
Font ltb = new Font(bf, 10, Font.BOLD);
 
 
FontFactoryImp ffimp = new FontFactoryImp();
Font lt = ffimp.getFont(BaseFont.COURIER,BaseFont.CP1257,true,10,Font.NORMAL);
Font ltb = ffimp.getFont(BaseFont.COURIER,BaseFont.CP1257,true,10,Font.BOLD);
 
but it doesn't work OK in all computers
 
 
What have I do it will be OK in all computers ?
 
 


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.

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to