* to 124 so that XQTR will be precisely an integer.
*/
-struct param {
+struct width {
char const * option;
char const * fontname;
char const * fullname;
int ttfwidth;
};
-struct param const params[] = {
+struct width const widths[] = {
{
"--normal",
"Bedstead", "Bedstead",
7, /* ttfwidth */
},
};
-static int const nparams = sizeof(params) / sizeof(params[0]);
+static int const nwidths = sizeof(widths) / sizeof(widths[0]);
-struct param const *param = ¶ms[0];
+struct width const *width = &widths[0];
/* Size of pixels in font design units (usually 1000/em) */
-#define XPIX (param->xpix)
+#define XPIX (width->xpix)
#define YPIX 100
/* We work internally in smaller units, though. */
while (argc > 1) {
- for (i = 0; i < nparams; i++)
- if (strcmp(argv[1], params[i].option) == 0) {
- param = ¶ms[i];
+ for (i = 0; i < nwidths; i++)
+ if (strcmp(argv[1], widths[i].option) == 0) {
+ width = &widths[i];
argv++; argc--;
goto next;
}
if (glyphs[i].unicode == -1)
extraglyphs++;
printf("SplineFontDB: 3.0\n");
- printf("FontName: %s\n", param->fontname);
- printf("FullName: %s\n", param->fullname);
+ printf("FontName: %s\n", width->fontname);
+ printf("FullName: %s\n", width->fullname);
printf("FamilyName: Bedstead\n");
printf("Weight: Medium\n");
printf("OS2_WeightWidthSlopeOnly: 1\n");
printf("OS2SupYOff: %d\n", 2 * YPIX);
printf("FSType: 0\n");
printf("TTFWeight: 500\n");
- printf("TTFWidth: %d\n", param->ttfwidth);
+ printf("TTFWidth: %d\n", width->ttfwidth);
dopanose();
printf("OS2FamilyClass: %d\n", 0x080a);
printf("LayerCount: 2\n");