Op 17/02/2011 14:28, Mohammed Farrag schreef:
bf =
BaseFont.createFont("/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/Arial.ttf",
BaseFont.IDENTITY_H, true);
I'm not sure if arial.ttf has the arabic characters; I usually use
arialuni.ttf for non-Western languages.
public Element newParagraph(String text, int alignment, Font font) {
Paragraph p = new Paragraph(text, font);
p.setAlignment(alignment);
return p;
}
The newParagraph method seems to be OK. Your font sizes are 22 and 20.
As you're working in composite mode, the leading of the corresponding
paragraphs should be 33 and 30. (I assumed that the leading would be the
problem. That would explain the lines being drawn over each other.)
I don't know what's wrong with your code.
Can you write a small standalone example that reproduces the problem so
that I can test it?
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php