Export change Fonts

Stimulsoft Reports.WPF discussion
Post Reply
Niqu
Posts: 81
Joined: Wed Aug 08, 2012 9:08 am

Export change Fonts

Post by Niqu »

Hello,

I found out that "Export" method changes fonts in Visual Studio (in system ?).
I send you simple project.
What I do is click "Show", then I do "Save" and take option "Adobe PDF file...". Then "Ok" and save it on disc.
And suddenly all fonts in Visual Studio are changed (propably not only in Visual Studio -> e.g. I think that Internet Explorer changed fonts also, maybe some more products did it).

It is very bad for me, can you look at it?
Thank you for help in advance.
Attachments
StimulsoftWpfApplication11.zip
(4.62 MiB) Downloaded 199 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export change Fonts

Post by Alex K. »

Hello,

This is done due to a bug in the GDI+ library. If the textbox has a transparent background and is exported as the image, then, when the ClearType is enabled, the edges of the letters get thick black rims instead of smooth halftones.
We disable the ClearType only when exporting, and then enable it again. But in Win8 (and in Win7 SP1) something has changed, and now the ClearType is not enabled immediately, but with a delay, so, after the export, the screen may not look the way it is.
You can use the following option for disable this:

Code: Select all

StiOptions.Export.DisableClearTypeDuringExport = false;
Thank you.
Niqu
Posts: 81
Joined: Wed Aug 08, 2012 9:08 am

Re: Export change Fonts

Post by Niqu »

Thank you. It seems work.
Is there any consequences of putting this parameter in code? E.g. can not change fonts in system during export or something?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export change Fonts

Post by HighAley »

Hello.
Niqu wrote:Thank you. It seems work.
Is there any consequences of putting this parameter in code? E.g. can not change fonts in system during export or something?
There could be problems with exporting text with transparent background as image. There could be when you
- set the Export As Image property
- export in some formats report with text components where Allow HTML Tags property set to true

Thank you.
Post Reply