summaryrefslogtreecommitdiff
path: root/pango/pango-engine.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-09-18 19:57:16 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-09-18 19:57:16 +0000
commita3e5dbf6e73e9edea2b3f5bbcfd54d792b78f976 (patch)
tree1e45c8ab96c058e179537f12511e2b2c6ab44c59 /pango/pango-engine.h
parentdc1a29694287012dd5ec8795d8d5e987c26e6181 (diff)
downloadpango-a3e5dbf6e73e9edea2b3f5bbcfd54d792b78f976.tar.gz
Bug 356194 – more pango_get_log_attrs problems
2006-09-18 Behdad Esfahbod <behdad@gnome.org> Bug 356194 – more pango_get_log_attrs problems * pango/break.c (tailor_break): New function. Simply calls the script_break() function of the language engine, if any. * pango/break.c (pango_break): Call pango_default_break() unconditionally. Call tailor_break() on top of the result to tailor it using the language engines, if any. * pango/break.c (tailor_segment): Call tailor_break() on the segment, and make sure the log_attrs for the first position are not corrupted. * pango/break.c (pango_get_log_attrs): Call pango_default_break() on the entire paragraph, and call tailor_segment on each segment. * pango/pango-engine.h: Update docs about *script_break()'s behavior.
Diffstat (limited to 'pango/pango-engine.h')
-rw-r--r--pango/pango-engine.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/pango/pango-engine.h b/pango/pango-engine.h
index 44ae681a..2257a273 100644
--- a/pango/pango-engine.h
+++ b/pango/pango-engine.h
@@ -101,7 +101,11 @@ struct _PangoEngineLang
/**
* PangoEngineLangClass:
* @script_break: Provides a custom implementation of pango_break().
- * if this is %NULL, pango_default_break() will be used.
+ * If %NULL, pango_default_break() is used instead. If not %NULL, for
+ * Pango versions before 1.16 (module interface version before 1.6.0),
+ * this was called instead of pango_default_break(), but in newer versions,
+ * pango_default_break() is always called and this is called after that to
+ * allow tailoring the breaking results.
*
* Class structure for #PangoEngineLang
**/