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

Support for FiraCode font with programming ligatures #1

Closed
hastebrot opened this issue Dec 21, 2015 · 6 comments
Closed

Support for FiraCode font with programming ligatures #1

hastebrot opened this issue Dec 21, 2015 · 6 comments

Comments

@hastebrot
Copy link

Fira Code is a Fira Mono font extended with a set of ligatures for common programming multi-character combinations. This is just a font rendering feature: underlying code remains ASCII-compatible. This helps to read and understand code faster.

https://github.com/tonsky/FiraCode

There are other terminals that work (Konsole) and some that don't work (iTerm 2, rxvt):

https://github.com/tonsky/FiraCode#terminals-support

@hastebrot
Copy link
Author

Wow, this works just out-of-the-box?

@fornwall
Copy link
Member

Nice, haven't seen this kind of font with ligatures before! I've submitted version 0.8 of Termux:Styling to Google Play, should be available in a couple of hours max.

Yes, it works out of the box after light testing, let me know if you find any glitch with the Terminal behaviour!

The Termux terminal text rendering causes e.g. <- to be rendered as a composed ligature if all text attributes are same for < and -, which is the common case. If a text attribute (color, background, bold, italic, ...) differs between the < and -, such as when placing the cursor one of them, they are rendered as separate characters, which I think is a sensible behaviour.

@hastebrot
Copy link
Author

Version 0.8 is available. FiraCode works great in Termux so far. The rendering as separate characters while editing makes sense.

Thank you very much!

@hastebrot hastebrot changed the title Support for FireCode font with programming ligatures Support for FiraCode font with programming ligatures Dec 23, 2015
@hastebrot
Copy link
Author

Added Termux to supported terminals in FiraCode's README.md: tonsky/FiraCode#97

@hastebrot
Copy link
Author

Since version 1.000 it switched to calt which causes the separate characters. So it is ok.

Switched to calt instead of liga. You can now “step inside” the ligature in text editors.

@davemackintosh
Copy link

This doesn't seem to work anymore, no ligatures on my android 8.0 and latest Termux/Styling in neovim.

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

3 participants