Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for different fonts in the same file #30925

Open
RobertPaulson90 opened this issue Jul 18, 2017 · 10 comments
Open

Add support for different fonts in the same file #30925

RobertPaulson90 opened this issue Jul 18, 2017 · 10 comments
Labels
feature-request Request for new features or functionality font-rendering Font rendering issues
Milestone

Comments

@RobertPaulson90
Copy link

RobertPaulson90 commented Jul 18, 2017

Add support for choosing different font ligatures, than those within the "editor.fontFamily" selected font. For example, I would really like to use Operator Mono letters together with Fira Code ligatures. Atom-editor lets you do this.

A hacky workaround is with the Custom CSS and JS Loader extension. https://medium.com/@zamamohammed/multiple-fonts-alternative-to-operator-mono-in-vscode-7745b52120a0 @mohammedzamakhan

The Custom CSS and JS Loader extension makes vscode think it is corrupted, so I'd really prefer avoiding this hack.

Another custom workaround, which stopped working: https://gist.github.com/Mikeysax/e707e6971d991a7552017b4c00ef6a97

Semi-related: #192

Possibly helpful: https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Jul 18, 2017
@rebornix rebornix added the feature-request Request for new features or functionality label Jul 18, 2017
@sagarrabadiya
Copy link

any progress here? eagerly waiting for this.

@dmaisano
Copy link

I came across this issue after spending some time reading the same Medium post linked above, I as well would like to my Operator Mono font with Fira Code ligatures. The method in the medium post does not seem to work. If I to take a guess it seems like the styles changed with the recent update of vscode 1.14.2. It's a shame that this does not seem to work, hopefully there will be a solution some time soon :)

@sagarrabadiya
Copy link

https://github.com/kiliman/operator-mono-lig

I have found to embed the ligature into operator mono font itself. check the above project looks promising.
and for operator mono book
https://github.com/kennyklee/operator-mono-book-lig

also, you can apply it to any variant by just renaming script a bit.

@rebornix rebornix assigned alexdima and unassigned rebornix Nov 20, 2017
@alexdima alexdima added editor-rendering Editor rendering issues and removed editor editor-core Editor basic functionality labels Nov 24, 2017
@alexdima alexdima removed their assignment Nov 24, 2017
@ideologysec
Copy link

I use Pragmata Pro, and would love to see ligature support in VS Code for generic fonts that have ligatures, as opposed what seems to be essentially whitelisting fonts that the developers are aware of.

(though I'd probably be satisfied with support for just my particular font/use case, of course...)

@rdyson
Copy link

rdyson commented Jun 12, 2018

Late to the game. I was able to add ligatures using the Killman operator-mono-lig project as mentioned by @sagarrabadiya above, and adding "editor.fontLigatures": true in my settings.json.

Here's my fonts section in VS Code's settings.json:

{
    "editor.fontSize": 18,
    "editor.fontFamily": "Operator Mono Lig, Menlo, Monaco, 'Courier New', monospace, 'Apple Color Emoji'",
    "editor.fontLigatures": true
}

@TheSETJ
Copy link

TheSETJ commented Sep 6, 2018

I find this related to my subject, so I request it here. Is it possible to have support for multiple font families in VS Code? I like my comments be in different font family for example.

As mentioned there is an Custom CSS and JS Loader extension, but I don't like it because it seems VS Code complain about using it (with promoting it's corrupted).

@didinele
Copy link

didinele commented Aug 27, 2019

Any updates on this? eagerly waiting

@alexdima alexdima added the font-rendering Font rendering issues label Oct 23, 2019
@alexdima alexdima changed the title Add support for different font ligatures Add support for different fonts in the same file Oct 24, 2019
@alexdima alexdima removed the editor-rendering Editor rendering issues label Oct 25, 2019
@alexdima alexdima added this to the Backlog milestone Oct 25, 2019
@NatanAmorim
Copy link

This would be so good, and people have been hacking vs code to do this for more than 5 years, i would love if somehow we could implement as an official feature and dont worry about breaking vs code anymore.

@man-trackunit
Copy link

And now with GitHub's own Monaspace fonts... Neon for code, radon for comments 💯

@7flash
Copy link

7flash commented Dec 19, 2023

Any suggestions where to start from trying to implement this feature? I need it actually for rendering same font but in different sizes at the same file. #200971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality font-rendering Font rendering issues
Projects
None yet
Development

No branches or pull requests