[cairo] Kerning

Arjen Nienhuis a.g.nienhuis at gmail.com
Tue May 1 02:39:20 PDT 2012


I think you need extents.x_advance.
On Apr 29, 2012 5:23 AM, "Anu John" <anujohnt at yahoo.com> wrote:

> Hi,
>
> 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.
> 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
> extents.width (extents is of type cairo_text_extents_t ) and constant to
> get the uniform spacing, the spacing is non uniform.
> Sometimes there is overlap and sometimes there is too much of space. Could
> you please suggest a solution to solve this problem?
>
> 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?
>
> I really appreciate the time and help of people in the cairo community
>
> Thanks,
> Anu
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120501/cbe92584/attachment.htm>


More information about the cairo mailing list