<div dir="auto">Hello Bill!<div dir="auto"><br></div><div dir="auto">I have tested with cairo_surface_write_to_png() to rule out OpenGL, that suggests the issue is in Cairo.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il ven 23 set 2022, 17:02 Bill Spitzak <<a href="mailto:spitzak@gmail.com">spitzak@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Looks like the GL driver is not doing the transparency correctly</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 23, 2022 at 2:09 AM Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com" target="_blank" rel="noreferrer">rafaljopek@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Luca,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I used your code did not help, the window is still unchanged<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
cairo_font_options_t *options = cairo_font_options_create();
<div> </div>
<div>cairo_font_options_set_hint_style ( options, CAIRO_HINT_STYLE_NONE );</div>
<div>cairo_set_font_options( cr, options );</div>
cairo_font_options_destroy( options );<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
-- Rafał </div>
<div id="m_1821263459269264884m_-660949324388567518signature_bookmark"></div>
<div id="m_1821263459269264884m_-660949324388567518appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Od:</b> Luca Bacci <<a href="mailto:luca.bacci982@gmail.com" target="_blank" rel="noreferrer">luca.bacci982@gmail.com</a>><br>
<b>Wysłane:</b> piątek, 23 września 2022 10:51<br>
<b>Do:</b> Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com" target="_blank" rel="noreferrer">rafaljopek@hotmail.com</a>><br>
<b>DW:</b> <a href="mailto:cairo@cairographics.org" target="_blank" rel="noreferrer">cairo@cairographics.org</a> <<a href="mailto:cairo@cairographics.org" target="_blank" rel="noreferrer">cairo@cairographics.org</a>><br>
</font></div>
<div id="m_1821263459269264884m_-660949324388567518divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Temat:</b> Re: [cairo] Linux Windows differences (text)</font>
</div>
<div dir="ltr">
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello <span><span>Rafał, welcome!</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>I believe the difference in rendering is due to the font hinting options. Try setting it to NONE instead of using the platform-default:</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span style="font-family:monospace"><span>static void set_font_options( cairo_t *cr )<br>
{<br>
  cairo_font_options_t *options = cairo_font_options_create();<br>
  <br>
  cairo_font_options_set_hint_style ( font_options, CAIRO_HINT_STYLE_NONE );<br>
  cairo_set_font_options( cr, font_options );<br>
  cairo_font_options_destroy( font_options );<br>
}</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span><span>Regards,<br>
</span></span></div>
<div><span><span>Luca<br>
</span></span></div>
</div>
<br>
<div>
<div dir="ltr">Il giorno ven 23 set 2022 alle ore 10:09 Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com" target="_blank" rel="noreferrer">rafaljopek@hotmail.com</a>> ha scritto:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(36,41,47);font-size:14px;background-color:rgb(255,255,255);display:inline">What is the reason for the significant differences between Linux and Windows?</span><br style="box-sizing:border-box;color:rgb(36,41,47);font-size:14px;background-color:rgb(255,255,255)">
<span style="color:rgb(36,41,47);font-size:14px;background-color:rgb(255,255,255);display:inline">Source code was used for testing 1:1</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(36,41,47);font-size:14px;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(36,41,47);font-size:14px;background-color:rgb(255,255,255);display:inline">the screenshot can be seen here:<br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(36,41,47);font-size:14px;background-color:rgb(255,255,255);display:inline"><a href="https://github.com/rjopek/glfw-cairo/issues/5" id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPlnkOWALinkPreview" target="_blank" rel="noreferrer">https://github.com/rjopek/glfw-cairo/issues/5</a><br>
</span></div>
<div>
<div id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL3Jqb3Blay9nbGZ3LWNhaXJvL2lzc3Vlcy81" style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
<table id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPContainer665416" role="presentation" style="padding:12px 36px 12px 12px;width:100%;border-width:1px;border-style:solid;border-color:rgb(200,200,200);border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td>
<div id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPImageContainer665416" style="margin-right:12px;height:120px;overflow:hidden;width:240px">
<a href="https://github.com/rjopek/glfw-cairo/issues/5" id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPImageAnchor665416" target="_blank" rel="noreferrer"><img id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPThumbnailImageId665416" alt="" width="240" height="120" style="display:block" src="https://opengraph.githubassets.com/972d7759e5734dabd869686b3f9ed25d2775a00495e65cf29cb8fb4ea3306d4e/rjopek/glfw-cairo/issues/5"></a></div>
</td>
<td style="width:100%">
<div id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPTitle665416" style="font-size:21px;font-weight:300;margin-right:8px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px">
<a href="https://github.com/rjopek/glfw-cairo/issues/5" id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPUrlAnchor665416" style="text-decoration:none" target="_blank" rel="noreferrer">Linux Windows differences (text) · Issue #5 · rjopek/glfw-cairo</a></div>
<div id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPDescription665416" style="font-size:14px;max-height:100px;color:rgb(102,102,102);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px;margin-right:8px;overflow:hidden">
Hi, What is the reason for the significant differences between Linux and Windows? Source code was used for testing 1:1 examples/image_surfaces/gl_00.c</div>
<div id="m_1821263459269264884m_-660949324388567518x_m_7667472239950841636m_6567033009864391610LPMetadata665416" style="font-size:14px;font-weight:400;color:rgb(166,166,166);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a href="http://github.com" target="_blank" rel="noreferrer">github.com</a></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
-- Rafał</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>

</div></blockquote></div>
</blockquote></div>