Dear all,
I have created a program to insert Chinese with font type Microsoft JhengHei under Windows 7. However when I deploy to Windows Server 2012, Migradoc fail to embed the font into pdf and it also embed Microsoft Sans Serif and the Chinese Characters become square.
I have tried to change the font name "Microsoft JhengHei", "Microsoft JhengHei Regular", which fit the font name in control panel.
Here is my code piece:
Code:
string fontChi = "Microsoft JhengHei";
Font fChi = new Font(fontChi);
Style s2 = document.Styles["Heading1"];
s2.Font.ApplyFont(fChi);
s2.Font.Size = 15;
s2.ParagraphFormat.Alignment = ParagraphAlignment.Center;
cell.AddParagraph("Some chinese...").Style = "Heading1";
Is there any server configuration in Windows Server 2012 needed in order to make MigraDoc working? Thanks in advance.
Regards,
Peter