Add HB_NO_MERGE_CLUSTERS

Disables any cluster-merging.  Added for testing purposes while
we investigate what kind of API to add for this.
This commit is contained in:
Behdad Esfahbod 2014-04-14 15:55:42 -07:00
parent 897c7b804d
commit 66c6a48b6c
1 changed files with 8 additions and 0 deletions

View File

@ -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;