source-code-pro icon indicating copy to clipboard operation
source-code-pro copied to clipboard

Ligature support

Open juanpaulo10 opened this issue 7 years ago • 20 comments
trafficstars

Hi, I am really impressed with the font for source-code-pro, it is very relaxing and pleasing to the eye. However, I hope there will be support for ligatures from the days to come. Thanks!

juanpaulo10 avatar Jun 06 '18 02:06 juanpaulo10

Is this covered in #96?

frankrolf avatar Jun 06 '18 16:06 frankrolf

That's just an interest check though. As long as it's not implemented this could still be considered an issue.

rpbaptist avatar Sep 06 '18 13:09 rpbaptist

I also really hope to see ligatures!

pltrz avatar Nov 26 '18 23:11 pltrz

I also really hope to see ligatures!

There is one fork what already did ligatures, Im was using Fira Code, but migrated now to this new font https://github.com/i-tu/Hasklig ;)

tucomel avatar Feb 23 '19 16:02 tucomel

But Hasklig is designed for Haskell. However, synbol /= looks like ≠ because in Haskell it means not equal. However, in C and some other languages, it means divide and assign. If you see a ≠ b is written in single line that actually means a = a / b, won't you feel weird?

yvvt0379 avatar Mar 23 '20 06:03 yvvt0379

And requests about ligatures has been existing for years. However, they are still not implemented by now. Are they too difficult to do? Fonts including Fira Code, Monoid, Iosevka, Pragmata Pro and Jetbrains Mono already have them!(and some have non-ligatured variation) I'm now using Jetbrains Mono but I really miss the days with Source Code Pro! 😖

yvvt0379 avatar Apr 24 '20 10:04 yvvt0379

Eager to see this in some later version.

windless0530 avatar May 20 '21 13:05 windless0530

@windless0530 im asking everyone piling on to please list which ligatures you would find most useful. I’m currently working on an update so would be good to get a clear picture of what all I should implement. thnx.

pauldhunt avatar May 21 '21 13:05 pauldhunt

@pauldhunt I'm really glad to hear that, being as source code pro is my favorite coding font, except I had to switch because of ligatures

Some of the ones I use almost every minute are ===, !==, =>, <=, ->, <-, :=

In any case, fira code's ligatures could be a reference (for the record, not using fira code right now, i'm using another font with ligatures though)

jbrodriguez avatar May 21 '21 13:05 jbrodriguez

@pauldhunt Awesome to hear. I'm really looking forward to that.

Some I frequently use in Ruby

== != >= <= :: ->  => || && ||= += -=

And in Elixir: (besides some of the above)

<- |> <>

rpbaptist avatar May 21 '21 13:05 rpbaptist

Or, Jetbrains Mono is also a good choice for reference.

yvvt0379 avatar Jun 09 '21 22:06 yvvt0379

I really like the arbitrary-long combinative arrows from Fira Code, e.g. image

Besides arrows, this make nice lines in e.g. progressbars or underlines

nbiederbeck avatar Jun 16 '21 14:06 nbiederbeck

+1, really want this happen.

amendgit avatar Dec 01 '21 02:12 amendgit

any updates? about the font ligatures?

TheUnknownMystery avatar Apr 14 '22 10:04 TheUnknownMystery

I had begun on an update to Source Code last year, but have since picked up some additional projects. Coding ligatures are on my list for the next release, but unfortunately that probably won’t happen as soon as we would like.

pauldhunt avatar Apr 19 '22 06:04 pauldhunt

Appreciate the response mate!

TheUnknownMystery avatar Apr 19 '22 15:04 TheUnknownMystery

@windless0530 im asking everyone piling on to please list which ligatures you would find most useful. I’m currently working on an update so would be good to get a clear picture of what all I should implement. thnx.

I personnaly use the ones for C a lot: -> || && ++ -- |= &= += -= *= /= !! /* */ //

Kekun avatar Jul 15 '22 20:07 Kekun

That sounds great!

I'd add to this list: != !== => <= ===

NKjoep avatar Jul 15 '22 20:07 NKjoep

Also, </ /> <!-- --> can be put into consideration.

yvvt0379 avatar Jul 16 '22 02:07 yvvt0379

I also expect ligature support!

KeqiZeng avatar Jul 21 '23 13:07 KeqiZeng