From 9a1a2e496613b6bc1def34ca6cff29c1fd0cac4a Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 19 Nov 2024 23:38:46 +0000 Subject: [PATCH] Fix vertical stem hints on bold condensed fonts The weight needed to be adjusted to allow for the change in width. --- bedstead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2