From 6e82d59b4f72e8f2ff1830fb384907dcba95962a Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 27 Aug 2019 12:33:42 +0430 Subject: [PATCH] [glyf] Revert the way indexToLocFormat is set --- src/hb-ot-glyf-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index e4f705fb2..c667291d2 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -270,7 +270,7 @@ struct glyf return false; head *head_prime = (head *) hb_blob_get_data_writable (head_prime_blob, nullptr); - head_prime->indexToLocFormat = !use_short_loca; + head_prime->indexToLocFormat = use_short_loca ? 0 : 1; bool success = plan->add_table (HB_OT_TAG_head, head_prime_blob); hb_blob_destroy (head_prime_blob);