<div dir="auto">Consider that Cairo internally keeps a glyph cache, so the memory increase you experience may just be due to internal caching. Can you share the code and some data? I can make some test<div dir="auto"><br></div><div dir="auto">Luca</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il gio 8 dic 2022, 12:01 Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com">rafaljopek@hotmail.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">
<div><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">MSYS2 was used in the tests<br>
Version Cairo 1.17.6-3<br>
</span></div>
<div id="m_3973450193030754482appendonsend" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div id="m_3973450193030754482appendonsend" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div id="m_3973450193030754482appendonsend" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
--Rafał </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 id="m_3973450193030754482divRplyFwdMsg" 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> czwartek, 8 grudnia 2022 11:29<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>
<b>Temat:</b> Re: [cairo] Memory leak when using cairo_show_text</font>
<div> </div>
</div>
<div>
<div dir="auto">Hello Rafał,
<div dir="auto"><br>
</div>
<div dir="auto">Which OS are you using and which Cairo version?</div>
<div dir="auto"><br>
</div>
<div dir="auto">Luca</div>
</div>
<br>
<div>
<div dir="ltr">Il gio 8 dic 2022, 11:02 Rafał Jopek <<a href="mailto:rafaljopek@hotmail.com" target="_blank" rel="noreferrer">rafaljopek@hotmail.com</a>> ha scritto:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">Hi,</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Tests done on function </span><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt;display:inline!important">`cairo_show_text`</span><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
and also other functions that draw text cause</span><br>
</div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">increasing the physical memory used by the active process.<br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">For example if I use function to draw shapes `cairo_rectangle` or other</span><br>
</div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Everything is fine, the memory behaves perfectly.<br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Kind regards,<br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">--Rafał</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>