From: Ben Harris Date: Tue, 19 Nov 2024 23:38:46 +0000 (+0000) Subject: Fix vertical stem hints on bold condensed fonts X-Git-Tag: bedstead-3.246~9 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=9a1a2e496613b6bc1def34ca6cff29c1fd0cac4a;p=bedstead-debian.git Fix vertical stem hints on bold condensed fonts The weight needed to be adjusted to allow for the change in width. --- diff --git a/bedstead.c b/bedstead.c index 6fc2696..b5d3b68 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3906,8 +3906,8 @@ emit_hints(int vstems[XSIZE], int ledges[XSIZE], int redges[XSIZE], case hint_counter_stem: need_cntrmask = true; /* FALLTHROUGH */ case hint_stem: - start = i * XPIX - weight->weight; - size = XPIX + weight->weight; + start = i * XPIX - weight->weight / XSCALE; + size = XPIX + weight->weight / XSCALE; break; case hint_aedge: /* Left edge. */ start = i * XPIX + 21;