shithub: pdffs

Download patch

ref: a01e30542bfd8d8e1e307e71f4600619a18cacd1
parent: 17b159b5de4471d799ddee592ab613c37c4e169a
author: Noam Preil <[email protected]>
date: Tue Sep 6 22:24:36 EDT 2022

op: fix glyph rendering

--- a/op.c
+++ b/op.c
@@ -722,7 +722,8 @@
 				for(buf[0] = 'a'; buf[0] <= 'z'; buf[0] += 1)
 					if(strcmp(buf, o->name) == 0)
 						return bufput(&p->buf, (uchar*)buf, 1) == 1;
-				fprint(2, "TODO: recognize glyph name '%s'\n", o->name);
+				return bufput(&p->buf, &c, 1);
+				fprint(2, "TODO: recognize glyph name '%s', num %d, char %c\n", o->name, d, c);
 				return 1;
 			} else
 				d += 1;