From 9c346371c7ea77be8a7840fa66d28a63e52d6445 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 27 Sep 2024 10:57:22 +0100 Subject: [PATCH] Correct PANOSE Letterform value and extend to implausible weights --- bedstead.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bedstead.c b/bedstead.c index 7601d32..90e1f29 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3042,10 +3042,14 @@ dopanose(void) /* * We declare that our O is not Off Center. * - * OutCurv similarly seems to be independent of XPIX, and for - * all reasonable weights it falls within the "Boxed" range. + * Like Speed, OutCurv seems to be independent of XPIX. */ - panose[7] = 5; /* Normal/Boxed */ + if (weight->weight <= -80) + panose[7] = 3; /* Normal/Weighted */ + else if (weight->weight <= 90) + panose[7] = 4; /* Normal/Boxed */ + else + panose[7] = 5; /* Normal/Flattened */ /* * TrimRat is independent of XPIX. * TrimRat = ((100-2*XQTR_S) + weight->weight) / (100 + weight->weight) -- 2.30.2