From: Ben Harris Date: Sat, 28 Mar 2020 10:48:34 +0000 (+0000) Subject: Switch encoding from UnicodeBmp to UnicodeFull X-Git-Tag: bedstead-002.001~18 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=1933bc167fdbb6627399e7deb8b07df81db192e3;p=bedstead-debian.git 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. --- 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");