[cairo] Pango AttributesList Question

Behdad Esfahbod behdad at behdad.org
Thu Sep 2 13:48:11 PDT 2010

On 09/02/10 03:30, Travis Griggs wrote:
> The pango functions pango_attr_list_insert () and
> pango_attr_list_insert_before () both have documentation that states "It
> will be inserted after/before all other attributes with a matching
> start_index."
> I feel kinda dumb/naive here, but I don't get what the context of
> after/before is here. I mean, the Attributes that get added, have a
> span, and can intersect/overlap already, so I'm not sure what this
> before/after sense would imply, or why I would worry about one over the
> other. Is it in case there are ambiguities in an overlap? And either the
> earliest or latest takes precedence?

I don't know!  I *think* it is relevant when you have multiple attributes of
the same kind starting at the same position.  The later ones "win" I guess.


More information about the cairo mailing list