You'll always have two steps:

- convert your bytes in some encoding to a java String. For example:

byte b[] = ...;
String s = new String(b, "UTF-8");

- use a font with the characters with the encoding Identity-H. For example:

BaseFont bf = BaseFont.createFont("c:\\winnt\\fonts\\arialuni.ttf",
BaseFont.IDENTITY_H, true);

Best Regards,
Paulo Soares

----- Original Message -----
From: "Trevor Linton" <[EMAIL PROTECTED]>
To: "iText" <[EMAIL PROTECTED]>
Sent: Sunday, October 26, 2003 2:55
Subject: [iText-questions] iText


Hi,

I had some encoding problems earlier that i've worked out, however i'm
now trying to add full Unicode support. Is there a way to set an
encoding to UTF-8 so pretty much any language will work or is that not
possible because it's really up to the True Type font for the supported
encoding(s)? I'm using CP1250 however what happens when someone tries to
use extended characters such as arabic or chinese? Do I have to then set
the encoding to UniGB-UCS2-H, etc.. etc.. etc..  It's disappointing that
True Type fonts make it this difficult to handle encodings and character
sets.  Can someone provide me some guidance?

Thanks in advance!

- Trevor

Trevor Linton
Senior Web Applications Developer
V�rit� Multimedia
http://www.verite.com <http://www.verite.com/>
DVD * CD * Web * Print * Film * Sound





-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to