|
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 ?
|
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
