From: Ben Harris Date: Fri, 27 Sep 2024 09:57:22 +0000 (+0100) Subject: Correct PANOSE Letterform value and extend to implausible weights X-Git-Tag: bedstead-002.008~10 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=9c346371c7ea77be8a7840fa66d28a63e52d6445;p=bedstead.git Correct PANOSE Letterform value and extend to implausible weights --- 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)