[pango/pango2: 27/37] line-breaker: Filter attributes properly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 27/37] line-breaker: Filter attributes properly
- Date: Tue, 21 Jun 2022 18:11:34 +0000 (UTC)
commit a6bf65ecbef3039cb05e5c75b03d6d714878e508
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 20 08:24:37 2022 -0700
line-breaker: Filter attributes properly
We need to extract the itemize attributes
first, or we'll miss attributes that are classified
as affecting both itemization and shaping.
pango/pango-line-breaker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-line-breaker.c b/pango/pango-line-breaker.c
index 6fe52dc3..0c170d5b 100644
--- a/pango/pango-line-breaker.c
+++ b/pango/pango-line-breaker.c
@@ -232,8 +232,8 @@ ensure_items (PangoLineBreaker *self)
self->render_attrs = pango_attr_list_copy (self->data->attrs);
if (self->render_attrs)
{
- shape_attrs = pango_attr_list_filter (self->render_attrs, pango_attribute_affects_break_or_shape,
NULL);
itemize_attrs = pango_attr_list_filter (self->render_attrs, pango_attribute_affects_itemization, NULL);
+ shape_attrs = pango_attr_list_filter (self->render_attrs, pango_attribute_affects_break_or_shape,
NULL);
}
self->items = pango_itemize_with_font (self->context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]