There's no magic way to know the needed encoding other than look at the 
characters. You may use FontSelector with your font as primary and arialuni.tt 
as secondary to take care of the missing glyphs.

Paulo 

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> Sent: Thursday, October 22, 2009 11:51 AM
> To: [email protected]
> Subject: [iText-questions] Issue with Chineese and European 
> characters together in single word
> 
> I have a issue dealing with chineese adn european chars in 
> single word.
> For e.g. I have a sentence coming from database in a String
> 
> Paragraph p = new Paragraph(new String("some text"),someFontt);
> by default the font I am using handles the European 
> characters like in GrossmüĀnster (where for illustration I 
> have added Ā). I am aware of iTextAsian.jar and using it for 
> CJK language. Issue is , at run time I may not know the text 
> is in english, does it have european character like ü or asian Ā.
> 
> The model I have developed is generic and fonts are 
> instantiated generically on CP1252 encoding, type-embeded coz 
> they are non-standard TTF and OTF fonts.
> 
> So, at run time how should the font to identify the text is 
> what and based on this appropriate bf.createFont is called.
> 
> Any inputs or direction would help
> 
> Thanks
> Pawan


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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/

Reply via email to