From 90bc582e1606fec20206a6cde236f5cebb8680de Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 1 Nov 2024 20:42:22 +0000 Subject: [PATCH] Add DEFAULT_CHAR to BDF Also sort properties into the order they appear in the XLFD spec. --- bedstead.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bedstead.c b/bedstead.c index 54c050e..d7379e9 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3872,7 +3872,7 @@ bdf_gen(int px_height) dpt_height, px_height, px_width * 10); printf("SIZE %d 75 75\n", pt_height); printf("FONTBOUNDINGBOX %d %d 0 %d\n", px_width, px_height, -base); - printf("STARTPROPERTIES 22\n"); + printf("STARTPROPERTIES 23\n"); printf("FOUNDRY \"bjh21\"\n"); printf("FAMILY_NAME \"Bedstead\"\n"); printf("WEIGHT_NAME \"%s\"\n", @@ -3889,8 +3889,6 @@ bdf_gen(int px_height) printf("AVERAGE_WIDTH %d\n", px_width * 10); printf("CHARSET_REGISTRY \"ISO10646\"\n"); printf("CHARSET_ENCODING \"1\"\n"); - printf("FONT_ASCENT %d\n", px_height - base); - printf("FONT_DESCENT %d\n", base); printf("UNDERLINE_POSITION %d\n", base / 2); printf("UNDERLINE_THICKNESS %d\n", base / 2); printf("RELATIVE_SETWIDTH %d\n", width->ttfwidth * 10); @@ -3899,6 +3897,9 @@ bdf_gen(int px_height) printf("FONT_VERSION \") print\n"); printf("currentfont /FontInfo get /version get print\n"); printf("(\"\n"); + printf("FONT_ASCENT %d\n", px_height - base); + printf("FONT_DESCENT %d\n", base); + printf("DEFAULT_CHAR %d\n", 0xf1ff); printf("ENDPROPERTIES\n"); printf("CHARS %d\n", nglyphs); for (i = 0; i < nglyphs; i++) { -- 2.30.2