<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Luca,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
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);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
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);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
-- Rafał </div>
<div id="signature_bookmark"></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" 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 <luca.bacci982@gmail.com><br>
<b>Wysłane:</b> piątek, 23 września 2022 10:51<br>
<b>Do:</b> Rafał Jopek <rafaljopek@hotmail.com><br>
<b>DW:</b> cairo@cairographics.org <cairo@cairographics.org><br>
</font></div>
<div id="divRplyFwdMsg" dir="ltr" class="elementToProof"><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 class="elementToProof"><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 class="elementToProof">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 class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Il giorno ven 23 set 2022 alle ore 10:09 Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com" data-auth="NotApplicable">rafaljopek@hotmail.com</a>> ha scritto:<br>
</div>
<blockquote class="x_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)">
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" data-auth="NotApplicable" id="x_m_7667472239950841636m_6567033009864391610LPlnkOWALinkPreview">https://github.com/rjopek/glfw-cairo/issues/5</a><br>
</span></div>
<div>
<div id="x_m_7667472239950841636m_6567033009864391610LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL3Jqb3Blay9nbGZ3LWNhaXJvL2lzc3Vlcy81" style="width:100%; margin-top:16px; margin-bottom:16px; max-width:800px; min-width:424px">
<table id="x_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="x_m_7667472239950841636m_6567033009864391610LPImageContainer665416" style="margin-right:12px; height:120px; overflow:hidden; width:240px">
<a href="https://github.com/rjopek/glfw-cairo/issues/5" data-auth="NotApplicable" id="x_m_7667472239950841636m_6567033009864391610LPImageAnchor665416"><img id="x_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="x_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" data-auth="NotApplicable" id="x_m_7667472239950841636m_6567033009864391610LPUrlAnchor665416" style="text-decoration:none">Linux Windows differences (text) · Issue #5 · rjopek/glfw-cairo</a></div>
<div id="x_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="x_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" data-auth="NotApplicable">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>
</body>
</html>