shithub: neatmkfn

Download patch

ref: eafe97d58c0d49a7fb74d222f88cbfaf47e8b474
parent: 50ea50cba8442a437e3dc1fd1eeb210c1ccf4b94
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sun Aug 3 19:27:47 EDT 2014

otf: fix the mapping of cmap format 4 with offsets

--- a/otf.c
+++ b/otf.c
@@ -85,7 +85,7 @@
 		offset = U16(offsets, 2 * i);
 		if (offset) {
 			for (j = beg; j <= end; j++)
-				glyph_code[U16(offsets + i * 2,
+				glyph_code[U16(offsets,
 						offset + (j - beg) * 2)] = j;
 		} else {
 			for (j = beg; j <= end; j++)