chiark / gitweb /
Switch encoding from UnicodeBmp to UnicodeFull
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 28 Mar 2020 10:48:34 +0000 (10:48 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 28 Mar 2020 10:48:34 +0000 (10:48 +0000)
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

index fe70cbfa3d01ebe995d7ab213a94937e11b5c997..3acb5b8758f60e6d2c43a7184634a2bc774418df 100644 (file)
@@ -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");