changeset 1965:686c3f30aa10

Fix font glyph counting.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 30 Jun 2018 06:20:37 +0300
parents 837c71641a3b
children 934cc71c97eb
files tools/fontconv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fontconv.c	Sat Jun 30 06:18:08 2018 +0300
+++ b/tools/fontconv.c	Sat Jun 30 06:20:37 2018 +0300
@@ -415,7 +415,7 @@
             goto out;
         }
 
-        if (glyph->index < font->maxglyph)
+        if (glyph->index >= 0)
             font->nglyphs++;
     }