[glyf] Revert the way indexToLocFormat is set

This commit is contained in:
Ebrahim Byagowi 2019-08-27 12:33:42 +04:30 committed by GitHub
parent 88e9db19d2
commit 6e82d59b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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