diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2015-08-18 16:21:26 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2015-08-18 16:34:07 +0200 |
commit | 3ea523f9da45c68eeab29d2d98f6a1972d0f2682 (patch) | |
tree | 110c97d0ed369e91e7fd557d956f39f9db658099 /pango/pangofc-shape.c | |
parent | 25976af86f2db722eb75c8d3015888cd5cad2efb (diff) | |
download | pango-3ea523f9da45c68eeab29d2d98f6a1972d0f2682.tar.gz |
Use finer HarfBuzz cluster level
So that we can set attributes (e.g. colors) to the marks and their bases
indecently.
https://bugzilla.gnome.org/show_bug.cgi?id=541608
Diffstat (limited to 'pango/pangofc-shape.c')
-rw-r--r-- | pango/pangofc-shape.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c index 51404f06..c9c0861c 100644 --- a/pango/pangofc-shape.c +++ b/pango/pangofc-shape.c @@ -342,6 +342,9 @@ _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) + hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); +#endif hb_buffer_set_flags (hb_buffer, (item_offset == 0 ? HB_BUFFER_FLAG_BOT : 0) | (item_offset + item_length == paragraph_length ? HB_BUFFER_FLAG_EOT : 0)); |