Hi all!
I'm in trouble with arabic and asian characters in pdf. (In RTF it was totally
automatic and I did nothing to correctly write those characters)
Suppose that I have in the same sentence, both arabic and asian, for example
the following:
?? CIAO ?????????? ????? ????? ???? ???????
What shall I do in pdf to add correclty that sentence in a Paragraph?
Consider also, that I have in input some text and some java.awt.Font, and I
have to write the pdf using those fonts.
I did the following method:
private Font awtToItextFont(java.awt.Font awtFont) {
DefaultFontMapper mapper = new DefaultFontMapper();
mapper.insertDirectory("C:/WINDOWS/Fonts");
BaseFont pdfFont = mapper.awtToPdf(awtFont);
Font itextFont = new Font(pdfFont);
itextFont.setSize(awtFont.getSize());
return itextFont;
}
Thanks in advance, best regards.
Raffaele
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar