[cairo] Fixing cairo_show_text to advance the current point

Carl Worth cworth at redhat.com
Tue Aug 23 16:46:19 PDT 2005


On Tue, 23 Aug 2005 19:39:13 -0400, Owen Taylor wrote:
> > Any objections to this going in?
> 
> Hmm:
> 
>  - The Pango functions that show text are not going to be changed
>    at this point. (show_layout, show_layout_line, 
>    show_glyph_string)

I don't see that as a big source of confusion, do you? (Though, it is
unfortunate I waited so long to get around to changing this, as
perhaps the pango APIs would have adopted a similar convention.)

>  - Your patch doesn't change show_glyphs(), and I tend to agree
>    with that.

Yes, that was quite intentional.

> So, the question is - is the gain in convenience for the toy API
> worth the possible confusion and the need to document the 
> inconsistency?

Where would we be documenting inconsistency? In pango vs. cairo? I see
the pango APIs as quite distinct from cairo_show_text. Would you
expect users to mix these calls?

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050823/bed69f44/attachment-0001.pgp


More information about the cairo mailing list