mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[gsubgpos] Conditionalize skippy on unsafe-to-concat
This commit is contained in:
1 parent
42681bdb55
commit
1fa64c0c23
1 file changed
+6
-2
@@ -537,7 +537,9 @@ struct hb_ot_apply_context_t :
|
||||
assert (num_items > 0);
|
||||
/* The alternate condition below is faster at string boundaries,
|
||||
* but produces subpar "unsafe-to-concat" values. */
|
||||
unsigned stop = end - 1/*num_items*/;
|
||||
unsigned stop = end - num_items;
|
||||
if (c->buffer->flags & HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT)
|
||||
stop = end - 1;
|
||||
while (idx < stop)
|
||||
{
|
||||
idx++;
|
||||
@@ -573,7 +575,9 @@ struct hb_ot_apply_context_t :
|
||||
assert (num_items > 0);
|
||||
/* The alternate condition below is faster at string boundaries,
|
||||
* but produces subpar "unsafe-to-concat" values. */
|
||||
unsigned stop = 1 - 1/*num_items*/;
|
||||
unsigned stop = 1 - num_items;
|
||||
if (c->buffer->flags & HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT)
|
||||
stop = 1 - 1;
|
||||
while (idx > stop)
|
||||
{
|
||||
idx--;
|
||||
|
||||
Reference in new issue
Block a user