<p>I think you need extents.x_advance.</p>
<div class="gmail_quote">On Apr 29, 2012 5:23 AM, "Anu John" <<a href="mailto:anujohnt@yahoo.com">anujohnt@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><div style="font-family:times,serif;font-size:12pt">Hi,</div><div style="font-family:times,serif;font-size:12pt"><br></div><div style="font-family:times,serif;font-size:12pt">
I am new to cairo graphics. I am trying to draw a text letter by letter. I want to get a constant space between each letter in the text.</div><div style="font-family:times,serif;font-size:12pt">When I use the courier font which is fixed width font, it works fine. But in the case of Serif even if I add to the x co-ordinate the </div>
<div style="font-family:times,serif;font-size:12pt">extents.width (<span style="font-family:Menlo;font-size:11px">extents is </span><span style="font-family:Menlo;font-size:11px">of
type </span><span style="font-family:Menlo;font-size:11px">cairo_text_extents_t )</span> and constant to get the uniform spacing, the spacing is non uniform. </div><div style="font-family:times,serif;font-size:12pt">Sometimes there is overlap and sometimes there is too much of space. Could you please suggest a solution to solve this problem?</div>
<div style="font-family:times,serif;font-size:12pt"><br></div><div style="font-family:times,serif;font-size:12pt">Is there any option in cairo by which when I give the text I can also specify the spacing between each letter in the text?</div>
<div style="font-family:times,serif;font-size:12pt"><br></div><div style="font-family:times,serif;font-size:12pt">I really appreciate the time and help of people in the cairo community</div><div style="font-family:times,serif;font-size:12pt">
<br></div><div style="font-family:times,serif;font-size:12pt">Thanks,</div><div style="font-family:times,serif;font-size:12pt">Anu</div></div></div></div><br>--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br></blockquote></div>