ref: d6629cca62b8f16e016c42e644907404319650e9
parent: d11408e98db95f4463e5c74cdab2ec1eeadaa0a9
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Nov 21 16:18:42 EST 2012
dev: charwid() should round to the closest number
--- a/dev.c
+++ b/dev.c
@@ -179,5 +179,5 @@
int charwid(int wid, int sz)
{
/* the original troff rounds the widths up */
- return (wid * sz + dev_uwid - 1) / dev_uwid;
+ return (wid * sz + dev_uwid / 2) / dev_uwid;
}