-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Ligature Support #66
Comments
I would love too to have ligatures for lite-xl. I made some preliminary research and it seems that the way to do it is HarfBuzz as you mentioned above. The problem is that I am reluctant to use HarfBuzz because of the additional complexity and and dependencies it brings. I would like to have a more simple, minimalist option to do ligatures but for the moment I haven't figured out how to do that. |
has this been implemented yet? |
Not yet. |
Hey there! Bumping this thread. I would really love ligatures too! |
I don't have time to work on that now but I found out that the harfbuzz library can be used without introducing unneeded dependencies. This means we can easily build and link a static version of harfbuzz in every OS we support without adding more external dependencies. In addition I found out this interesting project has ligature support: https://github.com/LukeSmithxyz/st we may use as a starting point to implement support in lite-xl. If someone contribute the implementation I may help for the build including the harfbuzz library. If implemented in the master-2.0 branch I may take care of including it in a 2.0.6 release alongside the coming final 2.1 release. |
Takase looked into this at using Harfbuzz at one point, and it was unfortunately significantly more complex than first expected. That said, it is something we could look more deeply into eventually; just not sure when. Regarding 2.1, now that jgm has a macbook and is able to verify that everything works on that platform, we should be basically good to go as soon as we merge horizontal scrolling and multicursor copy+paste improvements, which hopefully should be done soon; we're hoping to target sometime next week, barring major bugs. |
I would really like to see font ligatures rendering with fonts like FiraCode in lite-xl.
From my (very little) experience with text rendering I know that this may be a big task, that requires many changes in the C API regarding how text is rendered. I think the typical implementation is using HarfBuzz, as seen in e.g. the kitty Terminal, that has very good ligature support.
Would it be possible / is it in the scope of lite-xl?
The text was updated successfully, but these errors were encountered: