Ahmad Sheikh wrote:
> Thank you for you reply.
>
> It is working when i select the font Arial or Times New Roman for my
> URDU Language but When I select my own urdu font the PDF doesn't render
> and shows nothing.
>
> You can also test my font which I'm sending you attached as zip file.
>
> Your help is highly appreciated.
I don't know any Urdu, but I took the first glyph in your document, and
it was rendered to the PDF:
BaseFont basefont = BaseFont.createFont("Nafees Nastaleeq v1.02.ttf",
BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
Font font = new Font(basefont, 12);
document.add(new Phrase("\u0600", font));
Of course, you'll have to read the book (and the examples you were
referred to) to find out how to write the text from right to left.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/