Re: Kerning

Arjen Nienhuis <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAG6W84+2dzE_a=HeBC7_SFqQq27HWbuTWnH_qdQv0x1hz2XW5A@mail.gmail.com>
I think you need extents.x_advance.
On Apr 29, 2012 5:23 AM, "Anu John" <[email protected]> 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
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo
>

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.