rainglow / vscode

320+ color themes for Visual Studio Code.
https://rainglow.io
MIT License
1.3k stars 54 forks source link

Ligature Font operator? #16

Open kevinkashou opened 6 years ago

kevinkashou commented 6 years ago

Are you guys going to have the Operator font ligature support in your theme anytime soon?

vladmoroz commented 6 years ago

@kkashou I'm not sure VS Code themes have anything to do with font ligature support.

You enable ligatures in your VS Code settings if you are using a font that supports them: "editor.fontLigatures": true

kevinkashou commented 6 years ago

@vladmoroz I have that settings on but there are some themes in their css that give the support for ligature. That's why I was wondering.

vladmoroz commented 6 years ago

@kkashou can you give an example of a theme like that? Not sure what you mean, ligatures work with this theme just fine.

kevinkashou commented 6 years ago

https://marketplace.visualstudio.com/items?itemName=sldobri.daily

That theme Has an example of what I mean.

R3V1Z3 commented 6 years ago

I use Fira Code and the ligatures render fine with these themes. The Fantastic theme set makes use of italics, is that maybe what you had in mind @kkashou ?

If so, you can actually add italic support through user settings in VS Code (F1 -> Preferences: Open user settings) by adding rules like so:

"editor.tokenColorCustomizations": { "textMateRules": [ { "scope": [ "comment", ], "settings": { "fontStyle": "italic", } } ] }

For reference, there's a discussion here about disabling italics support: https://github.com/Microsoft/vscode/issues/32579

As an aside, for those who can't afford the Operator font, there's this mashup of the free Fira Code and Script12 fonts: https://github.com/kencrocken/FiraCodeiScript

Example using the above snippet with Rainglow Laracasts: rainglow-laracasts-italics