Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Jan 26, 2015 7:55 am

Hi,
I have a question about Embedding CJKFonts.

There are some requirements of font, "Simple Chinese, Traditional Chinese, Japanese".

Scenario:

I am using PDF Lib to generate the pdf file, It may be spread out.
I need to ensure anyone can open it correctly so I need to embed Font in PDF.

How can I do to reach my goal without downloading additional language packs??


I will be grateful for any help you can provide. :lol:

tomyan13@gmail.com
 
Posts: 1
Joined: Thu Jan 22, 2015 7:56 am

Mon Jan 26, 2015 9:10 am

Hello,

Thanks for your inquiry.
PdfCjkFontFamily.SinoTypeSongLight supports simplified chinese character,
PdfCjkFontFamily.MonotypeSunglight and PdfCjkFontFamily.MonotypeHeiMedium support traditional chinese character,
PdfCjkFontFamily.HeiseiMinochoW3 and PdfCjkFontFamily.HeiseiKakuGothicW5 support Japanese character.
e.g. PdfCjkStandardFont cjk = new PdfCjkStandardFont(PdfCjkFontFamily.SinoTypeSongLight, 8f, PdfFontStyle.Regular);

Best wishes,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Jan 27, 2015 9:23 am

Hello,

Has your issue been resolved?
Thanks for your feedback.

Best wishes,
Amy
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF