|
Rank: Newbie Groups: Member
Joined: 12/17/2015 Posts: 4
|
Hi Folks, i'm trying to print a german text including special characters to a PDF file, but in the resulting file these characters are missing.
Code: C#
AcmText code_valid_text = new AcmText("Nur mit lesbarem Code gültig");
The resulting Text will be "Nur mit lesbarem Code gltig". What iam doing wrong here? Cheers Stefan
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please try to explicitly set AcmText.Style.FontName to a German font name.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/17/2015 Posts: 4
|
Hi, with
Code: C#
code_valid_text.Style.FontName = "Arial";
it works, but if i set
Code: C#
code_valid_text.Style.FontName = "Helvetica-Bold";
it wont. I dont have installed the font Helvetica on this machine. But i want to display the file in Helvetica on machines which have installed the font and use an alternative font on all other machines. Do need have installed the font on source machine?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You can try that and see if it works. The reason that those character does not display correctly is because we do not do font substitution due to the fact that the ACM interface is designed to be a light weight interface (the "heavy weight" HTML to PDF interface does do font substitution). So if you set Style.FontName to a font that does not have font data for your certain German characters, then it won't display correctly since there is no font data for those characters in that specific font. Windows and the HTML to PDF converter on the other hand, will temporarily substitute the font with a different font that does have font data for those characters when this occurs. So the key to resolve such issues is to use the correct font and make sure the font files are installed on the target system.
Thanks!
|
|