Hacker News new | ask | show | jobs
by RheingoldRiver 862 days ago
This is the first time I've seen TODO as a ligature, and I am really into the idea. Is this something you can add to existing fonts? Does anyone have any recommendation for a good programming font that does this?
3 comments

Huh. You know what, I kinda dig it.

I could do without operators being condensed into ligatures, but that's just me. The gigantic triple equals strikes fear into my C programmer heart

Yeah, I generally do _not_ like programming-oriented ligatures, but the one for todo is sort of interesting.

However, many editors can accomplish the same goal by highlighting or changing the text colour of todos.

Emacs package for that (highlights others like FIXME etc): https://github.com/tarsius/hl-todo

You could make it have the outline thing if you tweak your theme. I wouldn't start installing or hacking your fonts to get this kind of stuff.

Fira Code supports stylistic sets, so you can actually configure whether == and === (and != and !==) do that, and leave weirder ligatures out of the defaults. In VS Code, for example, you would change editor.fontLigatures from true to "'ss08'" to make them still ligate together, but with breaks between the = signs. I use ss06 to make backslashes faded when they're used to escape other characters.
Glad you like it, I've never seen it in a font before so I am unsure if there are any others that add it in. I've definitely appreciated the ligature as I use the font, but I did wonder if others would find it annoying
I do think it's a better use of ligatures, and I generally dislike most ligatures in coding fonts [1].

[1] https://news.ycombinator.com/item?id=32746064 (and I only realized that I made this comment on the thread about your older font, oh...)

Haha
must be blind but I don't see it in the image of all characters
The ligatures appear to be excluded from the image of all glyphs. But below it is an image of all ligatures. ;)