Thanks, FontSelector worked for me. 1st added font will be the main font and
the 2nd one, default font.
________________________________
From: Mark Storer <msto...@autonomy.com>
To: Post all your questions about iText here
<itext-questions@lists.sourceforge.net>
Sent: Tuesday, September 13, 2011 4:34 AM
Subject: Re: [iText-questions] limited fonts
See that? You learn something new every
day.
Paulo wrote FontSelector.
So the code would look something like
this?
FontSelector selector = new
FontSelector();
selector.add(persainFont);
selector.add(englishFont);
Phrase textWithFonts =
selector.process(myText);
document.add(textWithFonts);
--Mark Storer
Senior Software
Engineer
Cardiff.com
import legalese.Disclaimer;
Disclaimer<Cardiff>
DisCard = null;
>________________________________
> From: Paulo Soares [mailto:psoa...@glintt.com]
>Sent: Monday, September 12, 2011 4:00 PM
>To: Post all your questions about iText here
>Subject: Re: [iText-questions] limited fonts
>
>
>FontSelector
>----- Original Message -----
>>From: Mark Storer
>>To: Vahid Nasiri ; Post all your questions about iText here
>>Sent: Monday, September 12, 2011 11:30 PM
>>Subject: Re: [iText-questions] limited fonts
>>
>>
>>It is not possible, no.
>>
>>You have to parse your text and use the appropriate font for a given span of
>>characters.
>>
>>--Mark Storer
>> Senior Software Engineer
>> Cardiff.com
>>
>>import legalese.Disclaimer;
>>Disclaimer<Cardiff> DisCard = null;
>>
>>
>>
>>
>>>________________________________
>>> From: Vahid Nasiri [mailto:vahid_nas...@yahoo.com]
>>>Sent: Monday, September 12, 2011 1:41 PM
>>>To: itext-questions@lists.sourceforge.net
>>>Subject: [iText-questions] limited fonts
>>>
>>>
>>>Hello,
>>>I have a custom font which supports a very few characters such as A, B and
>>>C.
>>>If I set and use this font, It will not print the D part of ABCD, which
>>>seems correct but is it possible, like browsers, force iText lib to switch
>>>to a default font and print that D char too.
>>>I need this functionality for some custom Persian fonts. These fonts do not
>>>contain English chars definitions and if I use them, I can not show the
>>>mixture of English and Persian texts.
>>>
>>>Thanks!
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php