chiark / gitweb /
Add halfwidth forms of some characters
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 4 May 2024 19:30:52 +0000 (20:30 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 4 May 2024 19:30:52 +0000 (20:30 +0100)
Specifically halfwidth forms of characters where we already have
ambiguous versions.  Bedstead is intrinsically a half-width font, so
the halfwidth forms should look the same as the ambiguous ones.

bedstead.c

index a86becfcdea6be6ced6982908dca88a1602aeaab..f39aeb5ee1eeb615cef003cf495a8474c0aae562 100644 (file)
@@ -1992,6 +1992,15 @@ static struct glyph {
  {{006,010,036,012,012,012,017,000,000}, 0xfb01, "fi" },
  {{006,012,012,036,012,012,017,000,000}, 0xfb02, "fl" },
 
+ /* Halfwidth and fullwidth forms */
+ {{004,004,004,004,004,004,004,004,004}, U(FFE8) }, /* halfwidth U+2502 */
+ {{000,004,010,037,010,004,000,000,000}, U(FFE9) }, /* halfwidth U+2190 */
+ {{000,004,016,025,004,004,000,000,000}, U(FFEA) }, /* halfwidth U+2191 */
+ {{000,004,002,037,002,004,000,000,000}, U(FFEB) }, /* halfwidth U+2192 */
+ {{000,004,004,025,016,004,000,000,000}, U(FFEC) }, /* halfwidth U+2193 */
+ {{037,037,037,037,037,037,037,000,000}, U(FFED) }, /* halfwidth U+25A0 */
+ {{000,016,021,021,021,016,000,000,000}, U(FFEE) }, /* halfwidth U+25CB */
+
  /* Specials */
  {{016,021,025,011,016,012,016,000,000}, U(FFFD) }, /* replacement */