Chinese Italic Text

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v7)  /  Chinese Italic Text

DynamicPDF CoreSuite for .NET (v7) Forum

 Mar 14 2014 7:03 AM
Hi,

I want to display chinese text in italic format in pdf.
How can i display chinese text in italic format in pdf.
 Mar 14 2014 10:28 AM
Posted by a ceTe Software moderator
Hello,

In order to add Chinese text with italic style to PDF, you will need to use the respective font which has support for the Chinese text and italic style. You can create OpenTypeFont object using the font file path and use this font object to set it to the page elements. Please refer to the documentation on OpenTypeFont class here.

Thanks,
ceTe Software Support Team.
 Mar 18 2014 5:40 AM
Hi,

I use Arial Unicode MS font as OpenTypeFont to display chinese text below is code snippet

OpenTypeFont arialuni = new OpenTypeFont("ARIALUNI.ttf");
         OpenTypeFont arialuniBold = new OpenTypeFont("ARIALUNI.ttf");
         OpenTypeFont arialuniItalic = new OpenTypeFont("ARIALUNI.ttf");
         OpenTypeFont arialuniBoldItalic = new OpenTypeFont("ARIALUNI.ttf");

        customFontFamily = new FontFamily("ArialUnicodeMS", arialuni, arialuniBold, arialuniItalic, arialuniBoldItalic);

But still chinese text is not display as italic style.
Please share the font name which display chinese text in italic format or is there any other way to achieve it.
 Mar 18 2014 2:46 PM
Posted by a ceTe Software moderator
Hello,

In your code you are using the same font (Normal Arial Unicode) file "ARIALUNI.ttf" to create all the open type font objects. If Arial Unicode supports bold, italic and bold italic you will find different .ttf files for each of those styles and you would need to use those in your code. To achieve your requirement, you have to obtain the actual font files that support italics. We are not familiar with any fonts that support italic Chinese characters.

Thanks,
ceTe Software Support Team.

 Apr 01 2014 6:42 AM
how can i display chinese text in italic format.
please help me out and provide the steps to achieve it.
 Apr 01 2014 1:51 PM
Posted by a ceTe Software moderator
Hello,

The DynamicPDF for .NET product relies on the font being used to display the italic text. If the font you are using does not support italic text then it is not possible to achieve that style. Our product supports using any valid true type and open type fonts, here is the documentation link. You have to obtain a font (true type or open type) that supports italic style for Chinese characters and you will be able to use the OpenTypeFont class to add the appropriate text to the PDF.
 
Thanks,
ceTe Software Support Team.



All times are US Eastern Standard time. The time now is 11:42 PM.