summaryrefslogtreecommitdiff
path: root/pango/pango-break.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-21 23:12:45 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-23 20:43:49 -0400
commit6bf91907514a3730ca0622adb72df94910f0f9fa (patch)
tree2becc126be7834e2a344140bfb999f2226309f2a /pango/pango-break.h
parentc407656eab8777cfdbdf7f5109dba72795f7e996 (diff)
downloadpango-6bf91907514a3730ca0622adb72df94910f0f9fa.tar.gz
break: Add pango_attr_break api
So far, we've been applying attribute-based customization while doing per-item tailoring. But this is suboptimal, since it means we don't have a full view of the log attrs, and can't do invariant fixes that cross item boundaries. Therefore, add a separate pango_attr_break api that applies attributes to to the whole paragraph, and make PangoLayout use it.
Diffstat (limited to 'pango/pango-break.h')
-rw-r--r--pango/pango-break.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pango-break.h b/pango/pango-break.h
index f514d168..a8e6c5b9 100644
--- a/pango/pango-break.h
+++ b/pango/pango-break.h
@@ -123,6 +123,13 @@ void pango_tailor_break (const char *text,
PangoLogAttr *attrs,
int attrs_len);
+PANGO_AVAILABLE_IN_1_50
+void pango_attr_break (const char *text,
+ int length,
+ PangoAttrList *attr_list,
+ int offset,
+ PangoLogAttr *attrs,
+ int attrs_len);
G_END_DECLS