Live data from Hacker News

Sublime Text 3 now has font ligature support

forum.sublimetext.com

11–20 of 115 posts

Re: Sublime Text 3 now has font ligature support

#11

Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like, modular_raft = 10 spam = 20 The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.…

Some people use monospace fonts with ligatures specific to common programming languages: https://github.com/tonsky/FiraCode is one such example.

Re: Sublime Text 3 now has font ligature support

#12

Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like, modular_raft = 10 spam = 20 The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.…

It doesn't affect formatting spacing and is mostly for special symbols like arrows, greater than equal, double and triple equalities, etc. The ligatures in question are for programming languages, not stuff like 'ft'.

Re: Sublime Text 3 now has font ligature support

#13
post #11

Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like, modular_raft = 10 spam = 20 The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.…

Some people use monospace fonts with ligatures specific to common programming languages: https://github.com/tonsky/FiraCode is one such example.

Nice example, thank you. I see how they managed to avoid my issues.

(To save people the click: LaTeX ligatures != Fira ligatures. Most Fira ligatures are for programming operators/comparators and they are made to take as much space as the non-ligature version.)

Re: Sublime Text 3 now has font ligature support

#14
Yes!!!!!!!!!!!!!! I nearly quit sublime after using an editor that supported this feature for a month. While sublime is vastly superior in my mind to most other editors (spacemacs and Vim in my book not withstanding) I make a lot of use of icons in the Nerd Fonts for custom icons so this is a huge plus for me.

In my haste: forgot to link to the nerd fonts page! https://github.com/ryanoasis/nerd-fonts

For what it’s worth, I may be a tad OCD about how my desktop looks and feels :P

Re: Sublime Text 3 now has font ligature support

#16

Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like, modular_raft = 10 spam = 20 The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.…

The monospace font ligatures turn 2 characters into a double-wide single character, so you can still align to your heart's content! https://www.hanselman.com/blog/MonospacedProgrammingFontsWit...

Re: Sublime Text 3 now has font ligature support

#17

Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like, modular_raft = 10 spam = 20 The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.…

Besides fancy programming fonts (which I have mixed feelings about), ligatures and other complex text shaping features can also be necessary for legibly rendering string literals in some non-Latin scripts, like Arabic script. Even if your code is all in Latin letters, you might have test data, UI text, etc., that's in something else.

Re: Sublime Text 3 now has font ligature support

#18

I think Sublime Text is very good but has fallen behind in terms of version control. I think Atom and VS Code are winning the war right now. Especially because the latter are free.

They certainly may be more popular. I feel that the sublime ecosystem is superior personally. I personally also prefer the Sublime API over Atoms or VSCodes

Re: Sublime Text 3 now has font ligature support

#19

Honest question: Why would you want ligatures in plaintext? Especially in code, wouldn't that be weird as some people tend to manually align their code? Like, modular_raft = 10 spam = 20 The "ft" in modular_raft should convert to a ligature so (I assume) it will then take one character, instead of two. Then developers viewing that source would have different alignments, depending on whether they use Sublime 3 or not.…

I can only speak for me as someone who really loves the aesthetics of code, but there's something super enjoyable about things like arrow functions rendering as actual arrows in Java / JavaScript. It's so clean!
Post reply on HN