From 1933bc167fdbb6627399e7deb8b07df81db192e3 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 28 Mar 2020 10:48:34 +0000 Subject: [PATCH] Switch encoding from UnicodeBmp to UnicodeFull This should have no effect on the OTF output, but it ensures that all characters are properly encoded in BDF. It also corrects a technical invalidity in our SFD files. --- bedstead.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bedstead.c b/bedstead.c index fe70cbf..3acb5b8 100644 --- a/bedstead.c +++ b/bedstead.c @@ -1822,7 +1822,7 @@ main(int argc, char **argv) printf("LayerCount: 2\n"); printf("Layer: 0 0 \"Back\" 1\n"); printf("Layer: 1 0 \"Fore\" 0\n"); - printf("Encoding: UnicodeBmp\n"); + printf("Encoding: UnicodeFull\n"); printf("NameList: Adobe Glyph List\n"); printf("DisplaySize: -24\n"); printf("AntiAlias: 1\n"); @@ -1864,7 +1864,7 @@ main(int argc, char **argv) "['smcp' ('latn' <'dflt'>)]\n"); printf("Lookup: 1 0 0 \"c2sc: upper-case to small caps\" {\"c2sc\"} " "['c2sc' ('latn' <'dflt'>)]\n"); - printf("BeginChars: %d %d\n", 65536 + extraglyphs, nglyphs); + printf("BeginChars: %d %d\n", 0x110000 + extraglyphs, nglyphs); extraglyphs = 0; for (i = 0; i < nglyphs; i++) { if (glyphs[i].name) @@ -1874,7 +1874,7 @@ main(int argc, char **argv) (unsigned)glyphs[i].unicode); printf("Encoding: %d %d %d\n", glyphs[i].unicode != -1 ? glyphs[i].unicode : - 65536 + extraglyphs++, glyphs[i].unicode, i); + 0x110000 + extraglyphs++, glyphs[i].unicode, i); printf("Width: %g\n", (double)(XSIZE * XPIX)); if (glyphs[i].flags & (MOS|MOS4)) printf("Flags: W\n"); -- 2.30.2