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

Ship with ligatures disabled, or make a more obvious setting to do that #6413

Open
ernstki opened this issue Nov 19, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ernstki
Copy link

ernstki commented Nov 19, 2024

Is your feature request related to a problem? Please describe.

It's only a problem for people who think it's a problem. ;)

Describe the solution you'd like

Ligature support is technological marvel in the field of digital typography, and I've no doubt that Wezterm has world-class support for it.

Practically speaking, however, it's something that—without evidence or data—I predict most programmers who use a variety of languages will eventually want to switch off, especially after the initial novelty wears thin, and particularly in certain contexts where the ligature representations are confusing rather than helpful. (screenshot below)

Therefore, I humbly propose that:

  • ligature support in the out-of-the-box setup be shipped disabled, or
  • that there be an obvious ligature_support = false option to easily disable it, without having to know anything about the underlying rendering engine

Describe alternatives you've considered

  • being less grumpy about new-fangled typographical features that aren't for me
    • (I do like well-hinted fonts and subpixel rendering, though ;)
  • just living with some confusing ligature renderings in languages I use a lot (Perl, HTML, PHP)
  • searching the issue tracker for "disable ligatures"
  • searching the documentation for "disable ligatures"

The latter does present an effective workaround

config.harfbuzz_features = { calt=0, clig=0, liga=0 }

but it's not in an easy-to-spot place in the docs, and it requires one to recognize that Harfbuzz is the thing making the ligatures, and to read the OpenType specification to truly understand it.

Additional context

Here's some POD in a Perl script, for example:

A screenshot of some Plain Old Documentation (POD) in a Perl script, demonstrating how the default settings of wezterm have rendered <-- (the start of a bold-faced command-line option) more difficult to read by replacing with a leftward-pointing arrow ligature charater.

@ernstki ernstki added the enhancement New feature or request label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant