I don't think you can do it for ttf and ttc. Do you have any pdf using that feature?

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 6:13 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] itext question
> 
> 
> 
> 
> 
> Hi,
>  I am chinese developer, I want to create my document with 
> chines fonts
> such as song font,hei font,fang font. But I dont't want to 
> use ttf or ttc
> fonts, as follows:
> 
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>     BaseFont bfComic = BaseFont.createFont("hei.ttf", 
> BaseFont.IDENTITY_H,  
>     BaseFont.EMBEDDED);                                       
>               
>     Font font = new Font(bfComic, 12);                        
>               
>     String text1 = "éä";                                      
>             
>     document.add(new Paragraph(text1, font));                 
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
> 
> I want to use the fonts in iTextAsian.jar. as follows:
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
>     BaseFont bfChinese = BaseFont.createFont("STSong-Light",  
>               
>     "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);                   
>               
>     Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);  
>               
>     Chunk chunk = new Chunk("åä", FontChinese);               
>             
>     document.add(chunk);                                      
>               
>                                                               
>               
>                                                               
>               
>                                                               
>               
> 
> 
> My question is how can I generate the *.properties file for 
> hei font,kai
> font and li font like the "STSong-Light.properties".
> 
>        Thanks for all.
>              jianwei li
>              beijing,chinaNçYèéåî?çèçLîv?ézåLåj 
> î?çîèNæv??éèåî?zYn?Z?.?îåååéç.îb?'ç?çNîgçhç'î'éç?brKh~)èéâã?î
> é?åæ+fjvç?ãéW(æ.åâåçe?åçèîèåîXî$åèzèî%ålççç?îèç?îî?æ~åzwîXîèåbæ?ååçè
> 

Reply via email to