shithub: neatmkfn

Download patch

ref: 0bad827ab9bdbed9c29f2ed2d049efd96a1a3449
parent: 0ad2c280032bca38fde14b4c3742d4443261bb3e
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Aug 16 18:11:08 EDT 2017

otf: CFF charset format 0

--- a/otf.c
+++ b/otf.c
@@ -1010,7 +1010,8 @@
 	strcpy(glyph_name[0], ".notdef");
 	if (U8(charset, 0) == 0) {
 		for (i = 0; i < glyph_n; i++)
-			cff_char(stridx, i, glyph_name[i]);
+			cff_char(stridx, U16(charset, 1 + i * 2),
+				glyph_name[i + 1]);
 	}
 	if (U8(charset, 0) == 1) {
 		int g = 1;