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

Language-specific OpenType Feature Names for Programming Ligatures #155

Open
be5invis opened this issue May 26, 2016 · 2 comments
Open

Language-specific OpenType Feature Names for Programming Ligatures #155

be5invis opened this issue May 26, 2016 · 2 comments

Comments

@be5invis
Copy link

be5invis commented May 26, 2016

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, source-foundry/Hack#211, #155

@larsenwork
Copy link
Owner

@be5invis cool idea, I'm not sure editor support is there yet but please enlighten me if they are

@be5invis
Copy link
Author

@larsenwork I've experimented a CSS patch to VSCode and it works well:
p
The style delta is

token.haskell{ font-feature-settings: "XHS_" 1 }

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