From: Ben Harris Date: Tue, 18 Nov 2025 20:52:06 +0000 (+0000) Subject: Add support for 'zero' (slashed zero) feature X-Git-Tag: bedstead-3.261~13 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=fa88f696c70fc62212f64d24e6d7b212ae4d5296;p=bedstead.git Add support for 'zero' (slashed zero) feature 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. --- diff --git a/bedstead.c b/bedstead.c index 45bff46..b856ecf 100644 --- a/bedstead.c +++ b/bedstead.c @@ -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) "\n" #define SUFFIXSUB1(base, suffix1, ...) SUB(base, base suffix1) #define SUFFIXSUB2(base, suffix1, suffix2, ...) SUB(base, base suffix2)