Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts with Ligatures Not Working #52

Open
4 tasks
chriscoyier opened this issue Nov 3, 2020 · 3 comments
Open
4 tasks

Fonts with Ligatures Not Working #52

chriscoyier opened this issue Nov 3, 2020 · 3 comments

Comments

@chriscoyier
Copy link
Contributor

chriscoyier commented Nov 3, 2020

  • 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 chriscoyier changed the title Hasklig Ligatures Aren't Working Fonts with Ligatures Not Working Nov 3, 2020
@RoelN
Copy link

RoelN commented Jan 6, 2021

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

@chriscoyier
Copy link
Contributor Author

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

@RoelN
Copy link

RoelN commented Jan 12, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants