chiark / gitweb /
Correct PANOSE Letterform value and extend to implausible weights
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 27 Sep 2024 09:57:22 +0000 (10:57 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 27 Sep 2024 09:57:22 +0000 (10:57 +0100)
bedstead.c

index 7601d32a0d6546b4fdb38c50eeb4bab974910713..90e1f29583fd86b5e89b7bd6374c6328052a00bc 100644 (file)
@@ -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)