I'm currently hitting a wall with text alignment. So far CENTER and LEFT align is working nicely. but the right align is screwed up.
here is what I'm doing.
cb.beginText();
cb.setFontAndSize(bf, labelDef.getFontSize());
cb.showTextAligned(labelDef.getAlignment(), labelDef.getLabelFr(), labelDef.getPosX(), document.getPageSize().height() - labelDef.getPosY(), 0);
cb.endText();
I have two label on two lines. each of them are aligned right with the same Pivot X. Normally they should be aligned right. But seams like the size of the text is having an effect on the result. the longer the string the farther it is from beind aligned.
Any tip on this?
I tried ColumnText too with no luck.
Jean-Philippe
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
