Hacker News new | ask | show | jobs
by anonymous908213 43 days ago
Would you like to elaborate on those few dozen more cases rather than handwaving them away? Embedding a VM into a font format is foundationally a ridiculous idea and should require real justification, although I know our industry is in love with anything that allows arbitrary code execution exploits.
2 comments

I could, or you could open your mind to the idea that the reason opentype wound up being as complex as it is is because the problem space you’re trying to solve is more complicated than you think it is. There is a working reference implementation which does the thing you think can be done more cheaply, you’re just throwing popcorn from the cheap seats here.
That algorithm fails for languages as exotic as English with its three character ligatures like ffl that are used in truffle, but not in cufflink.

The real challenge is Arabic, though, see https://fontspec.org/opentype-shaping/opentype-shaping-arabi...

I went to research your examples with Google, and interestingly enough, it now thinks that it's a "classic textbook example" while citing one source — this comment of yours (20 min old at the time):

> In typography, ligatures should be used in "truffle" but should not be used in "cufflink."

> This specific pair of words is a classic textbook example used by typographers and software developers to demonstrate the limitations of basic, automated font-rendering rules.

What a world to live in.

On the same point of yours, bad two-letter ligatures also exist: surfing (fi), selfless (fl), halftime (ft), etc. "Swordfish" is fine but "dwarfish" is not.

The AI learns quick because it does not hold onto its ego.