shithub: neatroff

Download patch

ref: fa4cd6d591046509be035f978c703f3652984656
parent: 596ab1ebe789bcf00d98bcaf41b8a546606344a9
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon May 28 20:23:59 EDT 2018

font: glyph indices should be large enough for more than 65k glyphs

Reported by Nils Reuße<n.reusse@hxgn.net>.

--- a/font.c
+++ b/font.c
@@ -16,7 +16,7 @@
 /* glyph substitution and positioning rules */
 struct grule {
 	struct gpat {			/* rule description */
-		short g;		/* glyph index */
+		int g;			/* glyph index */
 		short flg;		/* pattern flags; GF_* */
 		short x, y, xadv, yadv;	/* gpos data */
 	} *pats;			/* rule pattern */