chiark / gitweb /
Actual aliases for old names of separated 4-cell graphics
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 25 Nov 2024 22:44:19 +0000 (22:44 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 25 Nov 2024 22:44:19 +0000 (22:44 +0000)
That saves a few hundred bytes from the OTF.

bedstead.c

index d47744636c3548debe81061eb669307f75bdaeb4..8b8632b30f585ae83d123f5dc4d3e2355eb99b82 100644 (file)
@@ -2624,15 +2624,12 @@ static struct glyph {
  ALIAS("Wdieresis.sc", "wdieresis"),
 
  /* Compatibility aliases for 4-cell separated graphics. */
- {{0x3}, 0xf1e3, "upblock.sep4", SEP4 },
- {{0xc}, 0xf1ec, "dnblock.sep4", SEP4 },
- {{0xf}, 0xf1ef, "block.sep4",   SEP4 },
- {{0x5}, 0xf1e5, "lfblock.sep4", SEP4 },
- {{0xa}, 0xf1ea, "rtblock.sep4", SEP4 },
-#define M(x, u) { {x}, 0xf1e0 + x, "uni" #u ".sep4", SEP4 }
- M( 4, 2596), M( 8, 2597), M( 1, 2598), M(13, 2599),
- M( 9, 259A), M( 7, 259B), M(11, 259C), M( 2, 259D),
- M( 6, 259E), M(14, 259F),
+#define M(x, n) \
+ { .alias_of = "u1CC2" #x, 0xf1e ## x, n ".sep4", IS_ALIAS }
+ /*            */ M(1, "uni2598"), M(2, "uni259D"), M(3, "upblock"),
+ M(4, "uni2596"), M(5, "lfblock"), M(6, "uni259E"), M(7, "uni259B"),
+ M(8, "uni2597"), M(9, "uni259A"), M(A, "rtblock"), M(B, "uni259C"),
+ M(C, "dnblock"), M(D, "uni2599"), M(E, "uni259F"), M(F, "block"),
 #undef M
 
  /* and finally */