Fonts with Ligatures Not Working
chriscoyier opened this issue · 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.
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
For JuliaMono... it seems like they do? https://github.com/cormullion/juliamono/blob/master/images/specimen_7.png
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.