4 ms·
If you want to see how the ligature mechanism works, go to https://fonts.google.com/specimen/Zilla+Slab+Highlight https://fonts.google.com/specimen/Zilla+Slab+H
by JoshTriplett 9y ago
If you want to see how the ligature mechanism works, go to https://fonts.google.com/specimen/Zilla+Slab+Highlight https://fonts.google.com/specimen/Zilla+Slab+Highlight, type the sample text "mozilla", and watch it turn into the Mozilla logo when you type the 'a'.
- deleted 9y ago[deleted]
- Freak_NL 9y agoYou can also download and install the fonts and see the effect in any text editor if you choose Zilla Slab Highlight Bold. Zilla Slab uses the SIL Open Font License and looks really nice, so it's a nice font to have available in your arsenal.
- igravious 9y agoHow on earth does this work?!
- Splines 9y agoI am a complete font newbie, but looking at the standard (https://www.iso.org/standard/66391.html https://www.iso.org/standard/66391.html), it seems like there exists a feature called "contextual glyphs", which means you can supply alternative glyphs (like ligatures) given a particular sequence of glyphs. I imagine you could crack open the font file itself and find out how this works - I'm not familiar with any of the tools to do this though. Here's (I think) more detail: https://fontforge.github.io/editexample6-5.html https://fontforge.github.io/editexample6-5.html
- Freak_NL 9y agoJust open any TTF or OTF up in FontForge (free software) and have a look! Look under Element » Font Info, and then Lookups. All tables under GSUB deal with glyph substitution. The liga table is the simplest, and it can be used to replace a ligature like 'fl' with a glyph that combines the two letter forms.
- igravious 9y agoI can imagine many an hour lost down that rabbit hole :)
- rhencke 9y agoFont ligatures! Certain special combinations of characters can be treated by a font as having a special rendering known as a ligature. In CSS3, rendering of these is controlled through the 'font-variant-ligatures' property: https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-ligatures https://developer.mozilla.org/en-US/docs/Web/CSS/font-varian... For a small example of text with and without ligatures for the common 'fi' and 'fl' combinations: https://codepen.io/anon/pen/MvbPdo?editors=1000#0 https://codepen.io/anon/pen/MvbPdo?editors=1000#0
- deleted 9y ago[deleted]
- JoshTriplett 9y agoSee https://pixelambacht.nl/2015/sans-bullshit-sans/ https://pixelambacht.nl/2015/sans-bullshit-sans/ for more information on creating a font with ligatures.