Using Wasm for this animation really is an overkill IMHO.
*) https://learn.microsoft.com/en-us/typography/opentype/spec/g...
Edit: IIRC Ligatures are applied recursively, so you can have a ligature based on other ligatures. If I am right here, each ligature can consist only of two glyphs (the glyph of the previous animation frame followed by a dot). This would keep the GSUB table small.
There are font systems that target code and aren't monospace.
An example is Input: https://input.djr.com/ - https://input.djr.com/preview/
The niche seems to be people who like to code without monospace, or who present code without monospace, e.g. in slides or in blog posts. Or if you want typographical consistency between non-code and code, as I understand you are suggesting.
Indeed. https://googleprojectzero.github.io/0days-in-the-wild/0day-R...
- [1] https://learn.microsoft.com/en-us/typography/truetype/hintin...
[0] https://www.coderelay.io/fontemon.html
[1] https://github.com/mmulet/code-relay/blob/main/markdown/Tuto...
I have used the font "Alte DIN 1451 Mittelschrift" before, and it fits your requirements pretty well.
https://www.1001fonts.com/alte-din-1451-mittelschrift-font.h...
- [1] https://en.wikipedia.org/wiki/HarfBuzz - [2] https://www.phoronix.com/news/HarfBuzz-8.0