From d7f4594317f4c180211a2a15e1909471b3b97a07 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 13 May 2014 15:33:11 +0200 Subject: [PATCH] [autofit] Fix comment. --- src/autofit/hbshim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/autofit/hbshim.c b/src/autofit/hbshim.c index cf375a0e3..cc048159b 100644 --- a/src/autofit/hbshim.c +++ b/src/autofit/hbshim.c @@ -355,8 +355,9 @@ count++; #endif - /* HarfBuzz 0.9.26 and older doesn't validate glyph indices */ - /* returned by `hb_ot_layout_lookup_collect_glyphs'... */ + /* glyph indices returned by `hb_ot_layout_lookup_collect_glyphs' */ + /* can be arbitrary: some fonts use fake indices for processing */ + /* internal to GSUB or GPOS, which is fully valid */ if ( idx >= (hb_codepoint_t)globals->glyph_count ) continue;