bf =
BaseFont.createFont("/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/Arial.ttf",
                BaseFont.IDENTITY_H, true);

On Thu, Feb 17, 2011 at 3:16 PM, Mohammed Farrag <
[email protected]> wrote:

> public Element newParagraph(String text, int alignment, Font font) {
>
>         Paragraph p = new Paragraph(text, font);
>         p.setAlignment(alignment);
>         return p;
>
>     }
>
> On Thu, Feb 17, 2011 at 2:45 PM, 1T3XT BVBA <[email protected]> wrote:
>
>> Op 17/02/2011 12:40, Mohammed Farrag schreef:
>> > Hi ,
>> >
>> > I tried to write Arabic content to pdf file using
>> > PdfWriter(document,FileoutPutStream), but when I opened the pdf file
>> > some of lines is over another lines so it is unreadable.
>> You're not giving us sufficient info.
>> Which font are you using in bf?
>> What does the newParagraph() method do?
>>
>> > newParagraph(lawInfo, Element.ALIGN_CENTER, new Font(bf, 22,Font.BOLD));
>> If the lines are "over another" then chances are thay you're using the
>> wrong leading for the paragraph.
>> There's no way to tell if you don't show us what's inside the
>> newParagraph() method.
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>>
>
>
------------------------------------------------------------------------------
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

Reply via email to