summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-12-18 13:30:04 -0500
committerBehdad Esfahbod <behdad@behdad.org>2012-12-18 13:30:04 -0500
commit28cbfde6a0829283c22ab586907096ae2ad72dc0 (patch)
treee8c6940c61bca4d60cf3ee76e82ce778113cb40a /modules
parent97c470ebebb34ce3e5720a3a1003cf1c07e49308 (diff)
downloadpango-28cbfde6a0829283c22ab586907096ae2ad72dc0.tar.gz
[hb] Pass down BOT/EOT flags to HarfBuzz
Diffstat (limited to 'modules')
-rw-r--r--modules/basic/basic-fc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index e93d471e..548cee6a 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -362,6 +362,9 @@ basic_engine_shape (PangoEngineShape *engine G_GNUC_UNUSED,
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));
+ 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));
hb_buffer_add_utf8 (hb_buffer, paragraph_text, paragraph_length, item_offset, item_length);
hb_shape (hb_font, hb_buffer, NULL, 0);