PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Different character spacing on Workstation and Server
https://forum.pdfsharp.net/viewtopic.php?f=2&t=855
Page 1 of 1

Author:  andi09 [ Mon Aug 31, 2009 10:12 am ]
Post subject:  Different character spacing on Workstation and Server

Hallo @all,
I'm coding at the moment an webbased application by using VS2008 at Vista workstation and IIS7 at Windows server 2008.
On both systems are the same(!) fonts installed, but the result is different. The used font (Garamond) is correctly embedded.
I will show you an example at the attechements.
Has anybody any idea?
Thanx in advanced
Andi

Attachments:
workstation.jpg
workstation.jpg [ 10.64 KiB | Viewed 5121 times ]
server.jpg
server.jpg [ 10.79 KiB | Viewed 5121 times ]

Author:  Thomas Hoevel [ Mon Aug 31, 2009 11:29 am ]
Post subject:  Re: Different character spacing on Workstation and Server

Hi!

When run on the server, a different font is used for the font metrics.

But when using MigraDoc, this normally affects the spacing between words only, not the letter spacing.

viewtopic.php?f=2&t=828

Author:  andi09 [ Mon Aug 31, 2009 3:04 pm ]
Post subject:  Re: Different character spacing on Workstation and Server

Hallo Thomas,
sorry for the leaving of the version and project:
I compiled a pdfsharp-dll from the newest sources.
best regards
Andi

Author:  Thomas Hoevel [ Tue Sep 01, 2009 7:37 am ]
Post subject:  Re: Different character spacing on Workstation and Server

Hi, Andi,

so if you're using a GDI build, please try a WPF build (and vice versa).

IIRC the GDI build must run with Full Trust to access the font data (not sure about the WPF build).

The clean way: use the WPF build and embed all the fonts your server application needs and use them as a PrivateFontCollection.

If you have full control over the server you might as well change the server settings to give your application the access rights it needs.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/