source-foundry / Hack

A typeface designed for source code
http://sourcefoundry.org/hack/
Other
16.43k stars 613 forks source link

Language-specific OpenType Feature Names for Programming Ligatures #211

Closed be5invis closed 7 years ago

be5invis commented 8 years ago

Given the fact that in different languages, the symbol combination should be combined into a ligature are different, is it possible to provide a language-specific feature name to distinct them? For example, in C++, >>= should not be combined together, and we can assign a feature XCPP to combine >> only. In Haskell, >>= should be combined, and feature XHS_ will be applied. The default calt can be restricted to "most-common" languages only. cf. tonsky/FiraCode#192, atom/atom#11846, Microsoft/vscode#6918, chrissimpkins/Hack#211, larsenwork/monoid#155

chrissimpkins commented 8 years ago

We are not using ligatures at all in Hack. Can you provide more details about how this would apply here?

chrissimpkins commented 7 years ago

You might check out this fork that supports programming ligatures: https://github.com/ignatov/Haack/

cc: @ignatov