bygreencn / gdipp

Automatically exported from code.google.com/p/gdipp
0 stars 0 forks source link

GTK applications are corrupted if the GDIPP is not disabled #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which program triggers the problem? 

All GTK applications on my system exhibit total corruption with dialogs drawn 
incorrectly. It looks like GDIPP corrupts in a way the metrics that the GTK 
uses to draw elements.

Here is a list of the programs I had to add to the exception list in the last 
couple of days:
    <process>sylpheed\.exe</process>
    <process>claws-mail\.exe</process>
    <process>evince\.exe</process><br/>
    <process>Wireshark\.exe</process>    

At least the "Wireshark" (64-bit) should be easy to obtain.

What steps will reproduce the problem?
1. You will see the problem by simply starting the offending application.

What is the expected output? What do you see instead?
-

What version of gdipp (including renderer)? On which operating system?

0.9.1 x64 on W7Ultimate SP1-beta.

Original issue reported on code.google.com by mmihe...@gmail.com on 13 Oct 2010 at 5:44

GoogleCodeExporter commented 9 years ago
Wireshark looks great to me (using the FreeType renderer). See screenshots.

- gdipp 0.9.1
- FreeType renderer
- Windows 7 Enterprise x64

Original comment by seandy...@gmail.com on 13 Oct 2010 at 9:10

Attachments:

GoogleCodeExporter commented 9 years ago
I have repeated the tests using AppInit method (I was using service mode 
before) and on the same version of the WireShark (1.2.5/x64). I have attached 
two screenshots. The first one is of the splash screen and the second one is of 
the main screen.

Original comment by mmihe...@gmail.com on 13 Oct 2010 at 9:35

Attachments:

GoogleCodeExporter commented 9 years ago
There is a little section in the gdi_settings.xml file.  If I comment it out I 
see exactly the problem you describe.  When I leave it in, the problem goes 
away:

<!-- comment this out to see your problem -->
<font>
    <renderer>0</renderer>
</font>

Original comment by seandy...@gmail.com on 13 Oct 2010 at 10:33

GoogleCodeExporter commented 9 years ago
My settings are:
    <font max_height="72">
      <renderer>10</renderer>
    </font>

As far as I know render=0 means to use ClearType as a renderer. By setting this 
option you disable FreeType as a renderer.

Original comment by mmihe...@gmail.com on 13 Oct 2010 at 12:43

GoogleCodeExporter commented 9 years ago
The 0.9.1 gdipp_setting.xml file has an *additional* <font> section below the 
main one:

<font max_height="72">
    <renderer>10</renderer>
</font>

. . .

<!-- Seems to be required for GTK apps -->
<font>
    <renderer>0</renderer>
</font>

Original comment by seandy...@gmail.com on 13 Oct 2010 at 1:38

GoogleCodeExporter commented 9 years ago
GTK applications are excluded by default in the setting file. Issue 24 shows 
the result if you do not do so.

Comment 5 by seandynan describe the key points of how to enable the exclusion. 
I highly recommend you try the default setting file along with the 0.9.1 
installer, or follow the upgrade guideline 
http://code.google.com/p/gdipp/wiki/HowToUpgrade.

Original comment by crendk...@gmail.com on 13 Oct 2010 at 7:43

GoogleCodeExporter commented 9 years ago
The issue is resolved and it can be closed. It was, as described, a 
configuration mistake on my part. The GTK applications are not supported and 
must be excluded from renderer.

I would suggest adding a comment to the default settings xml file - at least to 
this setting, why it is needed. It is hard to find this information otherwise.

Thanks to both of you.

Original comment by mmihe...@gmail.com on 15 Oct 2010 at 5:51

GoogleCodeExporter commented 9 years ago
OK.

Original comment by crendk...@gmail.com on 19 Oct 2010 at 4:54

GoogleCodeExporter commented 9 years ago
Issue 136 has been merged into this issue.

Original comment by crendk...@gmail.com on 23 Oct 2010 at 12:19