ref: 057a087d28d23a25c3fad7f3b8dce1d376da808e
parent: 9cdccf860421be862b85c4ff1124a37fca9a1ad8
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed May 15 19:46:06 EDT 2013
font: ignore charset after the first NGLYPHS glyphs
--- a/font.c
+++ b/font.c
@@ -37,7 +37,7 @@
struct glyph *glyph = NULL;
struct glyph *prev = NULL;
int wid, type;
- while (1) {
+ while (fn->n < NGLYPHS) {
if (fscanf(fin, "%s", name) != 1)
break;
fscanf(fin, "%s", tok);