summaryrefslogtreecommitdiff
path: root/pango/pangofc-shape.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-09-01 12:21:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-09-01 12:21:23 -0400
commit991e280c9affc6e5da8b35888b7ae74d2b0d0088 (patch)
tree0699e1b1806acd7a05f3ca5120a82498127d117a /pango/pangofc-shape.c
parent3f58b49182a117caadc0fcddeff39ce29ca8d397 (diff)
downloadpango-991e280c9affc6e5da8b35888b7ae74d2b0d0088.tar.gz
Only use finer harfbuzz clusters when they work
Harfbuzz 1.0.2 had errors in this area that gave us crashes in the testsuite (testiter). Therefore, only use this feature with Harfbuzz 1.0.3 or newer.
Diffstat (limited to 'pango/pangofc-shape.c')
-rw-r--r--pango/pangofc-shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index c9c0861c..816aa8b3 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -342,7 +342,7 @@ _pango_fc_shape (PangoFont *font,
hb_buffer_set_direction (hb_buffer, hb_direction);
hb_buffer_set_script (hb_buffer, hb_glib_script_to_script (analysis->script));
hb_buffer_set_language (hb_buffer, hb_language_from_string (pango_language_to_string (analysis->language), -1));
-#if HB_VERSION_ATLEAST(1,0,2)
+#if HB_VERSION_ATLEAST(1,0,3)
hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
#endif
hb_buffer_set_flags (hb_buffer,