<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 28, 2010, at 5:30 AM, Arjen Nienhuis wrote:</div><div><br></div><blockquote type="cite"><div>I think I'd rather save the font space in a variable and restore it when needed:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">my_label_font_space = cairo_save_font_space(cr);</font></div> <div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" face="'courier new', monospace">void my_draw_label(cr, text)</font></div> <div><font class="Apple-style-span" face="'courier new', monospace">{</font></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp;cairo_save(cr);</font></div> <div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp;</font><span class="Apple-style-span" style="font-family: 'courier new', monospace; ">cairo_restore_font_space(cr, my_label_font_space);</span></div> <meta http-equiv="content-type" content="text/html; charset=utf-8"><div></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><font class="Apple-style-span" face="'courier new', monospace">&nbsp;&nbsp; &nbsp;cairo_show_text (cr, text);</font></div> <div></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace; ">&nbsp;&nbsp; &nbsp;cairo_restore(cr);</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace; ">}</span></div></blockquote><br></div><div>Also want to point out that such a solution would be incompatible with the current behavior of the pattern transform.</div><div><br></div><div>What I want is a mode switch that really means "make all the Cairo transforms consistent".</div><div><br></div></body></html>