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

Caskaydia Cove not displaying on visual studio code, but displayed correctly in the integrated terminal. #785

Closed
3 tasks done
mina-atef-00 opened this issue Feb 13, 2022 · 62 comments

Comments

@mina-atef-00
Copy link

🗹 Requirements

  • I have searched the issues for my issue and found nothing related and/or helpful
  • I have searched the FAQ for help
  • I have searched the Wiki for help

🎯 Subject of the issue

Same as Title, Using the same property CaskaydiaCove NF on both the integrated terminal font and the editor font family. But the font is only displayed properly in the integrated terminal.

🔧 Your Setup

  • Which font are you using (e.g. Anonymice Powerline Nerd Font Complete.ttf)?
    Caskaydia Cove Regular Nerd Font Complete Windows Compatible.otf
  • Which terminal emulator are you using (e.g. iterm2, urxvt, gnome, konsole)?
    Visual Studio Code
  • Are you using OS X, Linux or Windows? And which specific version or distribution?
    Windows 10 21H1

★ Screenshots (Optional)

image

@Finii
Copy link
Collaborator

Finii commented Feb 14, 2022

I'm sorry I have no Visual Studio Code installed. Anyhow, I have Visual Studio; but that seems to look completely different:
image

And there the font shows up and is usable.

Where did you download the font from? Direkt from the Code file list?
image
In subdir patched-fonts/CascadiaCode/Regular/complete.

If that does not show up, maybe you should try the Caskaydia Cove Regular Nerd Font Complete Mono Windows Compatible.otf font?

@Finii
Copy link
Collaborator

Finii commented Feb 14, 2022

Ah best would be to try the font after #723.

Let me provide the patched font somewhere... working 🔧

https://github.com/Finii/nerd-fonts/tree/feature/cascadia-2111.01-patched/patched-fonts/CascadiaCode/Regular/complete

They one of these please.

@Finii
Copy link
Collaborator

Finii commented Feb 14, 2022

Hmm, Visual Studio Code is small :-D
Quickly installed.

Works on my machine?

image

I downloaded the fonts here: https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/CascadiaCode/Regular/complete

And just installed one file: Caskaydia Cove Nerd Font Complete Windows Compatible.ttf

Edit: The font in my Windows screenshots look really ugly; I guess because I'm not on that machine but only connected via remmina and antialiasing is turned off then? Maybe I should try nomachine for better looking fonts.

@mina-atef-00
Copy link
Author

Weird, I downloaded it from the link you provided and installed it again, same output.

@Finii
Copy link
Collaborator

Finii commented Feb 17, 2022

That is strange. Did you remove all Caskaydia * with this Fonts dialog and then install just that one font file? And restart VSCode afterwards?

@miloradowicz
Copy link

Having the same issue in Visual Studio. To me it seems Visual Studio might have a problem with PostScript outlines.

@Finii
Copy link
Collaborator

Finii commented May 3, 2022

I could not reproduce (i.e. works on my machine) with

https://github.com/Finii/nerd-fonts/tree/feature/cascadia-2111.01-patched/patched-fonts/CascadiaCode/Regular/complete

@miloradowicz Did you remove all Caskaydia*, reboot and install just one of the 2111.01 Caskaydias?

@miloradowicz
Copy link

I tried that, it didn't work. To be clear, my issue is with Visual Studio, VS Code seems to work fine.
Here are some other things I tried:

  1. version 1911.210 from here. It's ttf, and it worked;
  2. BlexMono (ttf), FiraCode (ttf), Fantasque (ttf) worked;
  3. Hasklig (otf), FuraMono(otf) didn't work.

@Finii
Copy link
Collaborator

Finii commented May 3, 2022

I have this:
image

Download and install this
https://github.com/Finii/nerd-fonts/blob/feature/cascadia-2111.01-patched/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Nerd%20Font%20Complete%20Windows%20Compatible%20Regular.otf

I have no other Caskaydias installed.

image

And I can select it:

remmina_HaskStep7_localhost:1111_20220503-120624

Edit: Screenshots look ugly because I go through RDP

@miloradowicz
Copy link

Doesn't work for me on Win11/VS2022.

@Finii
Copy link
Collaborator

Finii commented May 4, 2022

Unfortunately no screenshot.

Maybe it allows only monospaced fonts now?
Probably https://github.com/Finii/nerd-fonts/blob/feature/cascadia-2111.01-patched/patched-fonts/CascadiaCode/Regular/complete/Caskaydia%20Cove%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible%20Regular.otf (... Nerd Font Complete Mono... )
Not shure if that contains "Make NerdFonts Monospaced Again" and just only on mobile right now.

@miloradowicz
Copy link

miloradowicz commented May 6, 2022

Mono doesn't work either. I guess it's a VS2022 thing, I'll stick to ttf fonts for now.

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

@miloradowicz Caskaydia Code Whatever.ttf works?
Or do you mean some other font.

@miloradowicz
Copy link

miloradowicz commented May 9, 2022

  • version 1911.210 from here. It's ttf, and it worked;

  • BlexMono (ttf), FiraCode (ttf), Fantasque (ttf) worked;

All those above worked. I'm not sure about the origin of the Caskaydia in the link, since it's coming from an outside source. But it was Caskaydia Code Regular, and I needed Light. BlexMono, FiraCode and Fantasque are from this repo.

I tried all the font faces of Caskaydia Code.otf and none of them worked. I've only tried light versions of Hasklig and FuraMono.otf, and they didn't work either. I'm actually not sure if it's a ttf vs otf thing; I tried converting PostScript outlines to TrueType with FontForge, and it didn't help the issue, but I'm not proficient with the tool, so I probably did something wrong. Although I did test the converted font in Windows Terminal and VS Code and it doesn't appear to be broken. Just doesn't work with VS2022.

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Is VS 2022 (as the versions I have) still free for open source users? Then I can install that and install test / play around. Maybe you can link me to some MS page, to help me :-)

And you still did not say how 'not working' shows up? The font not in the selector dialog? The font not working if selected? etc?

Ah well, ...
image

Edit: Add image

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

What I see with VS2019 ist that Cascadia is bold while Caskaydia is not, meaning it is not detected as monospaced.
If that is the problem, one can work on that. But VS2019 took non-mono-detected fonts no questions asked...

image

Edit: Add image

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Hmm, installed VS2022 and was able to select Caskaydia Cove same way as with VS2019:

remmina_HaskStep7_localhost:1111_20220509-142809

The font face looks a bit thinner, and bold is missing, but then, I didn't install bold.

@miloradowicz
Copy link

Here's my issue
image
image
Maybe it's a Win11 thing then? I'll try it on a virtual machine.

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Hmm, but the issue author claims it happened on Win 10...

This is strange. I installed the font just by double click on the font file, and then ... click 'install' in the font preview window.

And I'm 'admin' on the machine, have no clue if that makes a difference where the font is installed or something.

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

You use 'light'. Is the problem also present with 'regular' that I used 🤔

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Your Caskaydia version number is strange ... 2007.001 that's definitive an old font file.

image

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Looks like I have installed it into some strange personal folder (and it works) and you have it in the system folder 🤔

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Hmm, Delugia works and is even bold ;-)

image

Delugia is where I deviate with the patching a bit from the usual 'Nerd Fonts path' in patching Cascadia Code.

Edit: Just pointing out: Image shows VS2022

Edit 2: Hmm, Delugia Mono is a patched Cascadia Mono, while Caskaydia Cove NF Mono is a patched Cascadia Code.

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

I would suggest removing all Caskaydia, and then go here: https://github.com/Finii/nerd-fonts/tree/feature/cascadia-2111.01-patched/patched-fonts/CascadiaCode, install all Caskaydia * Nerd Font Mono Windows Compatible.otf, reboot and then try again in VS2022.

That Caskaydia should be even better than the Delugia ones (recent fixes were not backported to Delugia).

After installation, check the font version, it should be 2111.1;Nerd Fonts 2.1.0.

@miloradowicz
Copy link

miloradowicz commented May 9, 2022

Well, I narrowed down the issue to the Terminal in VS.
Here Caskaydia shows up for the Text Editor font.
image
And here it doesn't for the Terminal window.
image
Tried with the font you linked above version 2111.01-patched

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

Waah, there are different 'show settings for', I never noticed that.

@Finii
Copy link
Collaborator

Finii commented May 9, 2022

At least Delugia seems to be selectable in Terminal. Maybe you can use that until I find out the issue (which will take some time I guess).

image

@Finii Finii added the confirmed label May 9, 2022
@miloradowicz
Copy link

miloradowicz commented May 9, 2022

I don't know if all the different versions I've tried so far behave this way, because I only paid attention to the Terminal settings (I only need NerdFonts for the git powerline), but I suspect that they might've been all kinda "working", just not in the Terminal.

@miloradowicz
Copy link

miloradowicz commented May 9, 2022

Delugia is where I deviate with the patching a bit from the usual 'Nerd Fonts path' in patching Cascadia Code.

Hmm, I notice that Delugia here is a TrueType font as well.

@Finii
Copy link
Collaborator

Finii commented Sep 12, 2022

Ok, at the moment I have the dynamic font installed, because that is bundled with Windows Terminal and it is a hassle (at least I am too dump for a simple solution) to remove just the font but keep the app.

Anyhow, @madjxatw issue is visible on my machine. VS2022:
grafik

Caskaydia is wider and the lines are less tall.
Additionally it seems the antialliasing has been turned off:

grafik

The same holds for the mono versions of both fonts. Of course the Nerd Font version is not detected as monospaced, but the Nerd Font Mono one is. Just noting because it seems to have nothing to do with 'being detected as monospaced'.

Edit: Add comments on mono

@Finii
Copy link
Collaborator

Finii commented Sep 12, 2022

Hmm, the size is identical in both fonts, if looked at with fontforge...

grafik

(In the bottom the path to the Windows Terminal 'installed' font.)

@Finii
Copy link
Collaborator

Finii commented Sep 12, 2022

Uninstalled Windows Terminal app, installed the 4 basic Cascadia.otf from Nerd Fonts src/unpatched-fonts/...
Same behavior in VS2022.

But indistinguischable in Writer 🤔
grafik

Edit: Note: I have no actual Windows box, this is RDP and it looks always (a bit) jaggy

@Finii
Copy link
Collaborator

Finii commented Sep 12, 2022

Hmm, opening the original otf in fontforge and generatig a new font works (i.e. looks good).
This is strange, but will take some time until I come round to check that in detail (sorry).

@Finii Finii added the ⚠ bug label Sep 12, 2022
@Finii
Copy link
Collaborator

Finii commented Sep 12, 2022

Tried Visual Studio Code (original issue) and there I see no difference in rendering. VSCode Version 1.71.0

Interestingly the problem is not in VS2019 - there the fonts are rendered equally bad :->

image

Also note that the 'Sample:' box in VS2022 shows the same 'bad looking' font, the antialiasing is just at work in the main editor window 🤔

@espenja
Copy link

espenja commented Sep 13, 2022

I tried to enable CaskaydiaCove NF as my VSCode terminal font and it wouldn't work. Tried restarting VSCode and my running Terminal instances. The solution for me was simply to kill explorer.exe in Task Manager and restart it by running File -> Run new task -> explorer.exe to force a refresh of Windows. Sounds silly, but hey, if it works... 🙄

@wswind
Copy link

wswind commented Oct 9, 2022

For my issue ( win 11 / VS 2022) CaskaydiaCove NF is not selectable for vs terminal. Delugia is a good workaround. Waiting for this to be fixed.

@Finii
Copy link
Collaborator

Finii commented Oct 9, 2022

Hmm, @wswind , is Delugia v2111.01.1 still working for you? You reference v2111.01.

@Finii
Copy link
Collaborator

Finii commented Oct 9, 2022

Just installed Delugia v2111.01.1 on my test-box, and it seems to work as expected:
image

Delugia and Delugia Mono can be selected but not Delugia Book.

@Finii
Copy link
Collaborator

Finii commented Oct 9, 2022

Now the question is: Why is Delugia working but Caskaydia Cove not? As the latest Delugia uses (almost) vanilla Nerd-Fonts-v2.2.2.

Well, CaskaydiaCove NF should not be selectable, because that is the equivalent to Delugia Book. But what is with NFM (Nerd Font Mono)?

Okay, even CaskaydiaCove NFM is not showing up, but Cascadia Code is also missing.

@Finii
Copy link
Collaborator

Finii commented Oct 9, 2022

Could it be that the VS terminal thing does only work with ttf and not with otf at all?

@wswind
Copy link

wswind commented Oct 14, 2022

Could it be that the VS terminal thing does only work with ttf and not with otf at all?

Yes, this might be the reason. I tried CascadiaCode-2111.01. CascadiaCodePL.ttf can be selected in vs terminal, but CascadiaCodePL-Regular.otf can not. So I think the vs terminal issue has noting to do with this project.

@johnholliday
Copy link

Is there a workaround to enable CaskaydiaCove NF and Terminal-Icons in the VS terminal? I'm using oh-my-posh in PowerShell and VSCode, but not in VS 2022.

@Finii
Copy link
Collaborator

Finii commented Feb 22, 2023

You could use Delugia [1] instead of Caskaydia Cove, if their settings suit you.
Otherwise you can use a tool like TransType ($$$) or other open source tools to convert the otfs to ttfs.

Hmm, that answer springs from the conclusion above:

the VS terminal thing does only work with ttf and not with otf at all?

while this Issue's title talks about Visual Studio Code.
I'm confused 😀
You state you use Caskaydia in VSCode.

[1] https://github.com/adam7/delugia-code

@johnholliday
Copy link

@Finii I can't use oh-my-posh in Visual Studio 2022 because it does not support CaskaydiaCove NF like both PowerShell and VSCode do. I will try using the delugia-code font to see if that works with Terminal-Icons.

@Finii
Copy link
Collaborator

Finii commented Feb 22, 2023

Ok, please report back. Can try to check if problem still.
I guess I do not understand what 'Terminal-Icons' means, but maybe that is not important.

@bevanshaw
Copy link

Ok, please report back. Can try to check if problem still. I guess I do not understand what 'Terminal-Icons' means, but maybe that is not important.

This is what terminal icons means. They are the small triangles and pictures that work with nerd fonts. Below is an image from Visual Studio Code where the icons are working followed by Visual Studio 2022 Developer Powershell 7 Terminal where they are not:

VS Code icons working:
image

VS 2022 icons not working:
image

@Finii
Copy link
Collaborator

Finii commented May 5, 2023

With the Nerd Font v3.0.0 Release Caskaydia Cove is now ttf and not otf any longer. That was needed to get the hints in the font match expectations (i.e. compare almost equal to the variable Cascadia Code font that a lot people have installed out of the box and that they use to compare.

Regarding the missing icons, if that is still a problem with 3.0.0, please open a new Issue.

To make sure the correct fonts are installed

  • Uninstall all Caskaydia Cove
  • Reboot
  • Install from Release package

@Finii Finii closed this as completed May 5, 2023
@ite-klass
Copy link

I have removed Caskaydia Cove, verified no Caskaydia font files in system nor user folder, restarted the system, installed all the Caskaydia ttf for all users.

They work fine in various programs (VS Code, KDiff3, Double Commander).
But not in Visual Studio. (It falls back to a different font, seemingly Courier.)

Windows 10. VS 2022 17.5.5. Nerd Fonts 3.0.1.

@Finii
Copy link
Collaborator

Finii commented May 15, 2023

That is Visual Studio 'proper', not Visual Studio Code, I guess.

Is that in the code editor or the terminal? Screenshot, also of the settings?

Edit: Ah yes, you explicitly mention VScode as working 👍

@Finii
Copy link
Collaborator

Finii commented May 15, 2023

Hmm, it happens in both, the editor and the terminal.
It also happens with VS 19

(O_o)

@alexis35115
Copy link

any news on this, i have the same issue on Visual Studio 2022 and the lastest version of the font.

It was working on W10 but not longer works on W11.

@johnholliday
Copy link

Caskaydia Code doesn't work, but Hack Nerd works just fine. First, go to nerdfonts.com and download the Hack Nerd Font. Then install the font onto your system. Finally, restart Visual Studio and select "Hack Nerd Font Mono" for the Terminal font.

Copy link
Contributor

github-actions bot commented Feb 5, 2024

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants