----- Original Message ----- 
From: "Bruno Lowagie" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 
<[email protected]>
Sent: Saturday, August 26, 2006 1:38 PM
Subject: Re: [iText-questions] add arabic font


> smsm kw wrote:
>
>> i want to add arabic font but when i did that by using this line :
>>
>> BaseFont bfComic =
>> BaseFont.CreateFont("D:\\windows\\fonts\\aswaq_tahoma_base.ttf",
>> BaseFont.CP1250 , BaseFont.EMBEDDED);
>>
>> Font font = new Font(bfComic, 12);
>>
>> i got a wrong result (rubbish result)
>>
> Arabic is written from right to left and has ligatures.
> You can only use Arabic fonts in combination with
> PdfPTable, (Multi)ColumnText and PdfContentByte;
> you can change the run-direction of these objects,
> as well as some Arabic options.
> There are some examples in the tutorial.

Furthermore you must use the encoding Identity-H.

Paulo

> br,
> Bruno


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to