<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 class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 23 set 2022 alle ore 10:09 Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com" target="_blank">rafaljopek@hotmail.com</a>> ha scritto:<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)">
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-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;background-color:rgb(255,255,255)">
<span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";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-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;background-color:rgb(255,255,255);display:inline"><a href="https://github.com/rjopek/glfw-cairo/issues/5" id="m_7667472239950841636m_6567033009864391610LPlnkOWALinkPreview" target="_blank">https://github.com/rjopek/glfw-cairo/issues/5</a><br>
</span></div>
<div>
<div id="m_7667472239950841636m_6567033009864391610LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL3Jqb3Blay9nbGZ3LWNhaXJvL2lzc3Vlcy81" style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
<table id="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 style="border-spacing:0px" valign="top">
<td>
<div id="m_7667472239950841636m_6567033009864391610LPImageContainer665416" style="margin-right:12px;height:120px;overflow:hidden;width:240px">
<a id="m_7667472239950841636m_6567033009864391610LPImageAnchor665416" href="https://github.com/rjopek/glfw-cairo/issues/5" target="_blank"><img id="m_7667472239950841636m_6567033009864391610LPThumbnailImageId665416" alt="" style="display: block;" src="https://opengraph.githubassets.com/972d7759e5734dabd869686b3f9ed25d2775a00495e65cf29cb8fb4ea3306d4e/rjopek/glfw-cairo/issues/5" width="240" height="120"></a></div>
</td>
<td style="width:100%">
<div id="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 id="m_7667472239950841636m_6567033009864391610LPUrlAnchor665416" href="https://github.com/rjopek/glfw-cairo/issues/5" style="text-decoration:none" target="_blank">Linux Windows differences (text) · Issue #5 · rjopek/glfw-cairo</a></div>
<div id="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_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">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>