shithub: neatmkfn

Download patch

ref: 0f065b8cd060e3fac9a7175b7b965c9815ea9469
parent: 5126cc6f5d8455cded60d001a2ddb0c2fb0762d6
author: Ali Gholami Rudi <[email protected]>
date: Tue Dec 15 12:31:22 EST 2020

otf: warn if truncating glyph names

--- a/otf.c
+++ b/otf.c
@@ -1041,6 +1041,8 @@
 	}
 	id -= 391;
 	len = cffidx_len(stridx, id);
+	if (mkfn_warn && len >= GNLEN)
+		fprintf(stderr, "neatmkfn: truncating glyph names (GNLEN is too small)\n");
 	if (len >= GNLEN)
 		len = GNLEN - 1;
 	memcpy(dst, cffidx_get(stridx, id), len);