From cfa9541daa86c659ea935bbd4507cc620658c6d4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 8 Mar 2023 10:35:39 -0700 Subject: [PATCH] [glyf] "Support" glyf version 1 --- src/OT/glyf/glyf.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 29328c762..1b5972b36 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -162,7 +162,7 @@ struct glyf_accelerator_t vmtx = nullptr; #endif const OT::head &head = *face->table.head; - if (head.indexToLocFormat > 1 || head.glyphDataFormat > 0) + if (head.indexToLocFormat > 1 || head.glyphDataFormat > 1) /* Unknown format. Leave num_glyphs=0, that takes care of disabling us. */ return; short_offset = 0 == head.indexToLocFormat;