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:[email protected]] 
        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 <mailto:[email protected]>  
                To: Vahid Nasiri <mailto:[email protected]>  ; Post
all your questions about iText here
<mailto:[email protected]>  
                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:[email protected]] 
                        Sent: Monday, September 12, 2011 1:41 PM
                        To: [email protected]
                        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&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to