Skip to content

Ligatures in TextAreas cause a misaligned cursor #125

Closed

Description

@Wowfunhappy
  1. Go to http://gistpreview.github.io/?83dd23cf73d9a1665cc068ddfdecc1f1 and click into the text box.
  2. Type "ff" followed by any character. (You may notice it becomes a ligature.)
  3. Press the left arrow key to move the text cursor one character back. Observe that the text cursor does not move.
  4. Type any character. Observe that it appears in the wrong place.

This textarea has font-family: monospace. Should ligatures even be appearing? If not, is that the whole reason we're hitting this problem, or is it a separate bug?

Activity

  1. krackers commented on Aug 10, 2026

    @krackers

    I think ligatures can happen with monospace, the fancy >= on some coding fonts is an example. So it is technically permitted to have them. However, they are usually not what you want for alphanumeric characters under monospace. I didn't even know that the fonts built into osx support monospace ligatures. I think most fonts have a way to disable them (something something liga table, or font-variant-ligatures)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions