-all: bedstead.otf bedstead-ext.otf sample.png title.png extended.png \
+all: bedstead.otf bedstead-ext.otf bedstead-con.otf bedstead-sem.otf \
+ sample.png title.png extended.png \
bedstead-10-df.png bedstead-20-df.png
bedstead.sfd: bedstead
bedstead-ext.sfd: bedstead
./bedstead --extended > bedstead-ext.sfd
+bedstead-con.sfd: bedstead
+ ./bedstead --condensed > bedstead-con.sfd
+
+bedstead-sem.sfd: bedstead
+ ./bedstead --semicondensed > bedstead-sem.sfd
+
%.otf %-10.bdf %-20.bdf: %.sfd
fontforge -lang=ff \
-c 'Open($$1); BitmapsAvail([10, 20]); Generate($$2, "bdf")' $< $@
7, /* ttfwidth */
};
+struct param condensed_param = {
+ "Bedstead-Condensed", "Bedstead Condensed",
+ 50, /* xpix */
+ 1, /* ttfwidth */
+};
+
+struct param semicondensed_param = {
+ "Bedstead-Semicondensed", "Bedstead Semicondensed",
+ 62, /* xpix */
+ 2, /* ttfwidth */
+};
+
struct param *param = &default_param;
/* Size of pixels in font design units (usually 1000/em) */
if (strcmp(argv[1], "--extended") == 0) {
param = &extended_param;
argv++; argc--;
+ } else if (strcmp(argv[1], "--condensed") == 0) {
+ param = &condensed_param;
+ argv++; argc--;
+ } else if (strcmp(argv[1], "--semicondensed") == 0) {
+ param = &semicondensed_param;
+ argv++; argc--;
} else if (strcmp(argv[1], "--") == 0) {
argv++; argc--;
break;
if (!started) printf("Fore\nSplineSet\n");
started = 1;
do {
- printf(" %.0f %.0f %s 1\n",
+ printf(" %g %g %s 1\n",
(double)p->v.x / SCALE,
(double)p->v.y / SCALE - 3*YPIX,
p == &points[i] && p->next ? "m" : "l");