Commit d7f4594317f4c180211a2a15e1909471b3b97a07

Werner Lemberg 2014-05-13T15:33:11

[autofit] Fix comment.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/autofit/hbshim.c b/src/autofit/hbshim.c
index cf375a0..cc04815 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;