Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf AcmText with special characters Options
SHeinze
Posted: Thursday, December 17, 2015 4:30:45 AM
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
eo_support
Posted: Thursday, December 17, 2015 7:00:56 AM
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!
SHeinze
Posted: Thursday, December 17, 2015 7:23:21 AM
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?

eo_support
Posted: Thursday, December 17, 2015 11:18:04 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.