chiark / gitweb /
Add support for 'zero' (slashed zero) feature
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 18 Nov 2025 20:52:06 +0000 (20:52 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:55:10 +0000 (21:55 +0000)
This re-uses the old Oslash glyph I drew that had the slash entirely
inside the O.  I've seen something similar on simulations of old
character generators, though I'm not sure I've seen any actual character
generators using this shape.

bedstead.c

index 45bff4673b8d8bb1c57c429a1868e34bd360ccd0..b856ecf753fe2dfd4b1cf70f689916cb9b092a1d 100644 (file)
@@ -544,6 +544,7 @@ static struct glyph {
  /* Basic Latin */
  ALIAS("quotesingle.curly", "quoteright"),
  {"\00\00\04\12\21\12\04\00\00", NU, "zero.onum" },
+ {"\16\21\23\25\31\21\16\00\00", NU, "zero.zero" },
  {"\00\00\04\14\04\04\16\00\00", NU, "one.onum" },
  {"\00\00\36\01\16\20\37\00\00", NU, "two.onum" },
  {"\00\00\37\01\02\06\01\21\16", NU, "three.onum" },
@@ -3165,6 +3166,7 @@ static struct gsub_feature {
        { "c2sc", SCRIPT_LATN, .suffix = ".c2sc" },
        { "rtlm", SCRIPT_ALL, .suffix = ".rtlm" },
        { "onum", SCRIPT_ALL, .suffix = ".onum" },
+       { "zero", SCRIPT_ALL, .suffix = ".zero" },
 #define SUB(in, out) "<Substitution in='" in "' out='" out "'/>\n"
 #define SUFFIXSUB1(base, suffix1, ...) SUB(base, base suffix1)
 #define SUFFIXSUB2(base, suffix1, suffix2, ...) SUB(base, base suffix2)