shithub: neatroff

Download patch

ref: e6a27240e5bcb4d04ca08426f311c6fd7758989d
parent: 2687b67734c845f405ca9d820c5bd6f8af513bb0
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Jun 22 16:01:30 EDT 2013

dev: make sure the ligature exists in the font in dev_lig()

--- a/dev.c
+++ b/dev.c
@@ -186,6 +186,6 @@
 	int i;
 	for (i = 0; i < fn->nlig; i++)
 		if (!strcmp(lig, fn->lig[i]))
-			return 1;
+			return font_find(fn, lig) != NULL;
 	return 0;
 }