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

I have a completely unrelated question with the topic but derived from the font-face used in the article.

https://arp242.net/yaml-config.html#can-be-hard-to-edit-espe...

In the heading, how was sp ligatures in the `espcially` written, is there a name for this? How do you connect the beginning of a `s` to the beginning of a `p`?




These are discretionary ligatures [0].

They're turned on in html with the following two css lines (though on firefox, either one is enough to have them happen):

    font-variant-ligatures: common-ligatures discretionary-ligatures;
    font-feature-settings: 'liga' on, 'dlig' on;
[0]: https://www.fonts.com/content/learning/fontology/level-3/sig...


Note it won't work for every font, or some fonts may have a different flag to enable it (I think there's an historical-ligatures, as well).




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

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

Search: