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:
parent
897c7b804d
commit
66c6a48b6c
|
@ -500,6 +500,10 @@ void
|
||||||
hb_buffer_t::merge_clusters (unsigned int start,
|
hb_buffer_t::merge_clusters (unsigned int start,
|
||||||
unsigned int end)
|
unsigned int end)
|
||||||
{
|
{
|
||||||
|
#ifdef HB_NO_MERGE_CLUSTERS
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (unlikely (end - start < 2))
|
if (unlikely (end - start < 2))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -528,6 +532,10 @@ void
|
||||||
hb_buffer_t::merge_out_clusters (unsigned int start,
|
hb_buffer_t::merge_out_clusters (unsigned int start,
|
||||||
unsigned int end)
|
unsigned int end)
|
||||||
{
|
{
|
||||||
|
#ifdef HB_NO_MERGE_CLUSTERS
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (unlikely (end - start < 2))
|
if (unlikely (end - start < 2))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue