Page 1 of 1

Export change Fonts

Posted: Mon Jan 20, 2014 12:41 pm
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.

Re: Export change Fonts

Posted: Tue Jan 21, 2014 7:21 am
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.

Re: Export change Fonts

Posted: Tue Jan 21, 2014 9:03 am
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?

Re: Export change Fonts

Posted: Tue Jan 21, 2014 10:40 am
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.