From 66c6a48b6ce9dab6375ba1a23d7e450d6974852a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 14 Apr 2014 15:55:42 -0700 Subject: [PATCH] Add HB_NO_MERGE_CLUSTERS Disables any cluster-merging. Added for testing purposes while we investigate what kind of API to add for this. --- src/hb-buffer.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index d6c6fcb8e..76bb10c0c 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -500,6 +500,10 @@ void hb_buffer_t::merge_clusters (unsigned int start, unsigned int end) { +#ifdef HB_NO_MERGE_CLUSTERS + return; +#endif + if (unlikely (end - start < 2)) return; @@ -528,6 +532,10 @@ void hb_buffer_t::merge_out_clusters (unsigned int start, unsigned int end) { +#ifdef HB_NO_MERGE_CLUSTERS + return; +#endif + if (unlikely (end - start < 2)) return;