coding-fonts icon indicating copy to clipboard operation
coding-fonts copied to clipboard

Fonts with Ligatures Not Working

Open chriscoyier opened this issue 3 years ago • 3 comments

  • [ ] Hasklig
  • [ ] FiraFlott
  • [ ] Iosevka
  • [ ] JuliaMono

Not sure if it's a font-feature-settings thing or if we just need to re-make the WOFFs properly or what.

chriscoyier avatar Nov 03 '20 22:11 chriscoyier

I was testing some of these fonts with Wakamai™ Fondue™ and can share my notes. In bold is my conclusion/recommendation, FWIW !


iosevka -- has dlig and also calt, but features missing from WOFF + WOFF2 files, but present in TTF. Font breaks WF 😅 Presumably dlig, calt and possibly all the cvXX/ssXX features add coding features once TTF is converted to WOFF

FireFlott -- no ligatures, but does have contextual alternates (e.g. move << brackets closer to eachother). Most features stripped from WOFF2 file, but present in TTF. Convert TTF to WOFF2 and use that, calt stuff should then work by default

hasklig -- no ligatures, but does have contextual alternates. But they don't seem to work, nothing changes. calt functionality not properly implemented in font

JuliaMono -- has lots of features, but none really specific for coding. Font just has no coding stuff

RoelN avatar Jan 06 '21 13:01 RoelN

For JuliaMono... it seems like they do? https://github.com/cormullion/juliamono/blob/master/images/specimen_7.png

chriscoyier avatar Jan 12 '21 16:01 chriscoyier

Ah indeed, it does for |> <| -> => ::. This should be done automatically by the render environment, so no need to add any specific CSS for this.

For the things in the right column, these are stylistic sets (and the zero feature), which can be tuned on by font-feature-settings: ss01 1; for instance.

RoelN avatar Jan 12 '21 17:01 RoelN