Page 1 of 1

Chinese font issue during PDF generation

PostPosted: Fri Aug 05, 2011 3:01 pm
by dickyho
Hi,

I am trying to convert some docx files with Chinese characters to PDF.
As there are two font files (*.ttc) in our system and each contains a particular set of Chinese characters, what can I do during font mapping so that all characters can be mapped and displayed properly?

Thanks.

Re: Chinese font issue during PDF generation

PostPosted: Fri Aug 05, 2011 4:03 pm
by tosswang
PhysicalFont font = PhysicalFonts.getPhysicalFonts().get("FangSong");
fontMapper.getFontMappings().put("仿宋", font);

font = PhysicalFonts.getPhysicalFonts().get("STXihei");
fontMapper.getFontMappings().put("华文细黑", font);

……

Hope can help you。