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

In the last line of the "goals" output, _ are not visible #896

Open
RalfJung opened this issue Sep 10, 2024 · 9 comments
Open

In the last line of the "goals" output, _ are not visible #896

RalfJung opened this issue Sep 10, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@RalfJung
Copy link

Consider this code for example:

Lemma my_lemma : True. Proof. exact I. Qed.
About my_lemma.

This produces output as follows on my system:

image

As you can see, in the last line the _ are not visible, and look like spaces.

Strangely, when I copy-paste that text it does contain the underscore. My guess is that the bottom few pixels of the output are truncated, cutting of the underscores.

@RalfJung
Copy link
Author

I have setup my system to use "Fira Code" as my monospace font, and I think that is what vscodium uses.

@Durbatuluk1701
Copy link
Contributor

It produces the following for me using 'JetBrainsMono Nerd Font Mono' and the underscores are present:
image

I also tested with Consolas, 'Courier New', and monospace and they all seem to display underscores, which sort of leads me to believe it must be related to Fira Code. Will test with it next.

@RalfJung
Copy link
Author

Fira Code has the underscores really low, as you can see in my screenhot. That's probably why it is more susceptible to being cut off at the bottom, if just last last pixel or two of the line are missing.

@Durbatuluk1701
Copy link
Contributor

Durbatuluk1701 commented Sep 10, 2024

I installed Fira Code and tried it in VsCode v1.93.0 (on Windows via WSL) and got this:
image

Are you using vscodium and/or not windows? Might be related to one of those if so

@RalfJung
Copy link
Author

This is vscodium on Linux.

I checked the font settings and they are set to 'Droid Sans Mono', 'monospace', monospace. If I set it to Noto Sans Mono, the underscores become visible. It's a bit hard to figure out which font names I can even use there, not all the fonts on my system work and vscode doesn't seem to have a way to list the fonts so that I can just select one...

@Durbatuluk1701
Copy link
Contributor

I have been able to reproduce this with monospace on Linux and vscode, but the exact same setup on Windows with font monospace does not cause the issue.

@RalfJung
Copy link
Author

monospace will be whatever your system default monospace font is.

@Durbatuluk1701
Copy link
Contributor

I think I have tracked down the offending font: DejaVu Sans Mono

I can confirm that with this font the underscores are not displayed in Linux, but even with DejaVu Sans Mono they are displayed in Windows

@rtetley rtetley added the bug Something isn't working label Sep 13, 2024
@RalfJung
Copy link
Author

Ah you are right, Fira Mono is actually fine -- I had some other trouble with my setup that meant some of my fonts were not picked up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants