From 1868a0d4224f0f94adf4fa7d103cf10e2020f5ea Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 14 Mar 2017 01:35:15 +0000 Subject: Slightly increase widths calculated from string lengths (mainly for .Bl -tag lists and SYNOPSIS .Nm blocks), such that the text still fits even if it is printed in bold font. This is an ugly band aid - but implementing font-dependent width measurements would be a major project and even more difficult for HTML than for PostScript. Issue reported by Jan Stary . --- html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index ea21d49f..c477fd1b 100644 --- a/html.c +++ b/html.c @@ -591,6 +591,8 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...) break; su = &mysu; a2width(arg2, su); + /* Increase width to make even bold text fit. */ + su->scale *= 1.1; if (fmt[-1] == 'W') su->scale *= -1.0; break; -- cgit