shithub: neatroff

Download patch

ref: 5dce7fb843ac8985602e83074f64382ba36440d3
parent: 9793b7f9e60d8dac0d044c4eedc46628496cb3e4
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Aug 15 10:35:47 EDT 2014

wb: use SDEVWID() for glyph position adjustments

--- a/wb.c
+++ b/wb.c
@@ -224,9 +224,9 @@
 			gdst, dmap, x, y, xadv, yadv, n_lg, n_kn);
 	for (i = 0; i < dst_n; i++) {
 		if (x[i])
-			wb_hmov(wb, DEVWID(wb->s, x[i]));
+			wb_hmov(wb, SDEVWID(wb->s, x[i]));
 		if (y[i])
-			wb_vmov(wb, DEVWID(wb->s, y[i]));
+			wb_vmov(wb, SDEVWID(wb->s, y[i]));
 		if (src_hyph[dmap[i]])
 			wb_putbuf(wb, c_hc);
 		if (gdst[i] == gsrc[dmap[i]])
@@ -234,9 +234,9 @@
 		else
 			wb_putbuf(wb, gdst[i]->name);
 		if (x[i] || xadv[i])
-			wb_hmov(wb, DEVWID(wb->s, xadv[i] - x[i]));
+			wb_hmov(wb, SDEVWID(wb->s, xadv[i] - x[i]));
 		if (y[i] || yadv[i])
-			wb_vmov(wb, DEVWID(wb->s, yadv[i] - y[i]));
+			wb_vmov(wb, SDEVWID(wb->s, yadv[i] - y[i]));
 	}
 	wb->sub_n = 0;
 	wb->icleft = 0;