Hacker News new | past | comments | ask | show | jobs | submit login

Can a font pick randomly between different versions of the same glyph?

I know a font can define unique ligatures for every character combo, but that would still mean the same combos like "fi" always look the same. Nice thing about this low-tech solution is that it can be trivially scaled up to introduce its own ligatures yet pick from them randomly, just at the expense of chore work (making the images).

Of course, at that point, it would be tempting to start looking for a more general solution.




> Can a font pick randomly between different versions of the same glyph?

In theory, yes, OpenType Contextual Alternates can do this.

See "Introducing variety" on this page: https://www.typenetwork.com/news/article/opentype-at-work-co...


There's a really good write up of this about the font Liza: https://underware.nl/case-studies/random-vs-clever/




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: