tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.17k stars 3.08k forks source link

New Ligatures: M-Dash #465

Closed jacoby closed 6 years ago

jacoby commented 6 years ago

It is common to use -- as mdash; but it doesn't look like an m-dash ("–") but rather like two normal dashes together.

I like infixing protocol into arrows, like scratch --samba--> local, and the arrow looks good and transformed, but the tail still looks like --.

I'm loving FiraCode in most places I use mono fonts.

dhouck commented 6 years ago

I see two main with this:

  1. The -- ligature already exists; it moves the hyphens closer together, because a lot of languages use it as decrement. Since this is a monospace font intended for programming, that usage is probably more common than as a dash of any sort.
  2. It will be hard to tell how long a dash is. I already sometimes have this problem with == and I would not like more ligatures introduced which cause that type of problem.
jacoby commented 6 years ago

I honestly had forgotten decrement, which is stupid of me. Fair enough.

tonsky commented 6 years ago

Not much I can do because I want decrement to look like two minuses. But it’s a great idea, definetely deserves to be done in more traditional fonts.