chiark / gitweb /
Add U+2003 EM SPACE as a blank mosaic graphics character
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 26 Sep 2024 12:31:51 +0000 (13:31 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 26 Sep 2024 12:31:51 +0000 (13:31 +0100)
At least Noto Sans and Noto Sans Symbols2 think that EM SPACE should
be the same width as mosaic graphics characters, and I think we could
do with a space that doesn't get changed by 'palt'.

bedstead.c

index 905a65a4a4b68c5a3b3aaa6119b18bc66833d904..340a32b70e331d1c316ecfa15a786fe2ec389db2 100644 (file)
@@ -480,6 +480,10 @@ static struct glyph {
  {{000,000,021,021,021,017,001,000,000}, U(0447) }, /* che */
 
  /* Mosaic graphics common to all versions */
+ {{0x00}, U(2003), /* em space */ MOS6 },
+ {{0x15}, 0x258c, "lfblock",      MOS6 },
+ {{0x2a}, 0x2590, "rtblock",      MOS6 },
+ {{0x3f}, 0x2588, "block",        MOS6 },
 #define M(u) { {0x ## u * 21 / 20 + 1}, U(1FB ## u), MOS6 }
  /* */  M(00), M(01), M(02), M(03), M(04), M(05), M(06),
  M(07), M(08), M(09), M(0A), M(0B), M(0C), M(0D), M(0E),
@@ -490,9 +494,6 @@ static struct glyph {
  M(2D), M(2E), M(2F), M(30), M(31), M(32), M(33), M(34),
  M(35), M(36), M(37), M(38), M(39), M(3A), M(3B),
 #undef M
- {{0x15}, 0x258c, "lfblock", MOS6 },
- {{0x2a}, 0x2590, "rtblock", MOS6 },
- {{0x3f}, 0x2588, "block",   MOS6 },
 #define M(u) { {0x ## u - 0x50}, U(1CE ## u), SEP6 }
  /*  */ M(51), M(52), M(53), M(54), M(55), M(56), M(57),
  M(58), M(59), M(5A), M(5B), M(5C), M(5D), M(5E), M(5F),