struct width const *width = &widths[0];
+/* Size of output pixels in font design units (usually 1000/em) */
+#define XPIX (width->xpix)
+#define YPIX 100
+
+/* Internally, we work in pixels 100 design units square */
+#define XPIX_S 100
+#define YPIX_S 100
+
+#define XSCALE ((double)XPIX_S / (double)XPIX)
+#define YSCALE ((double)YPIX_S / (double)YPIX)
+
+/* Position of diagonal lines within pixels */
+/* 29 is approximately 100 * (1-1/sqrt(2)) */
+#define XQTR_S 29
+#define YQTR_S 29
+
static struct weight {
char const *option;
char const *suffix;
500,
},
{
- "--book",
- " Book",
- -25,
- 400,
+ "--light",
+ " Light",
+ 2 * XQTR_S - 100,
+ 300,
},
{
"--bold",
struct weight const *weight = &weights[0];
-/* Size of output pixels in font design units (usually 1000/em) */
-#define XPIX (width->xpix)
-#define YPIX 100
-
-/* Internally, we work in pixels 100 design units square */
-#define XPIX_S 100
-#define YPIX_S 100
-
-#define XSCALE ((double)XPIX_S / (double)XPIX)
-#define YSCALE ((double)YPIX_S / (double)YPIX)
-
-/* Position of diagonal lines within pixels */
-/* 29 is approximately 100 * (1-1/sqrt(2)) */
-#define XQTR_S 29
-#define YQTR_S 29
-
static void dochar(char const data[YSIZE], unsigned flags);
static void dochar_plotter(char const data[YSIZE], unsigned flags);
static void domosaic(unsigned code, bool sep);