ref: b90d9861a09c39d09fea4bec8ed11a1eafa9d159
parent: 5c18bf016c0841ec61e1b144b45a8c4cb38356b6
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Aug 6 14:28:21 EDT 2014
wb: scale glyph positioning adjustments according to wb->s Reported by Dirk-Wilhelm Peters <peters@schwertfisch.de>.
--- a/wb.c
+++ b/wb.c
@@ -226,9 +226,9 @@
charnext_str(hc, c_hc);
for (i = 0; i < dst_n; i++) {
if (x[i])
- wb_hmov(wb, x[i]);
+ wb_hmov(wb, DEVWID(wb->s, x[i]));
if (y[i])
- wb_vmov(wb, y[i]);
+ wb_vmov(wb, DEVWID(wb->s, y[i]));
if (src_hyph[dmap[i]])
sbuf_printf(&wb->sbuf, "%s", hc);
if (gdst[i] == gsrc[dmap[i]])
@@ -236,9 +236,9 @@
else
wb_putbuf(wb, gdst[i]->name);
if (x[i] || xadv[i])
- wb_hmov(wb, xadv[i] - x[i]);
+ wb_hmov(wb, DEVWID(wb->s, xadv[i] - x[i]));
if (y[i] || yadv[i])
- wb_vmov(wb, yadv[i] - y[i]);
+ wb_vmov(wb, DEVWID(wb->s, yadv[i] - y[i]));
}
wb->sub_n = 0;
wb->icleft = 0;