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

Foreground and background are inverted for certain characters #18249

Open
brunnerh opened this issue Nov 26, 2024 · 2 comments
Open

Foreground and background are inverted for certain characters #18249

brunnerh opened this issue Nov 26, 2024 · 2 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@brunnerh
Copy link

brunnerh commented Nov 26, 2024

Windows Terminal version

1.22.3232.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

The Black Large Circle ⬤ (0x2b24) has inverted colors, e.g. printing both Black Circle ● (0x25cf) and the large version in red via PowerShell:

echo "$([char]0x001b)[31m●⬤$([char]0x001b)[0m"

(The explicit coloring is not necessary to show this, though my use case requires the color to indicate various statuses.)

Expected Behavior

In both cases the circle is red.

Actual Behavior

Only for the small circle is red, for the larger one, the background becomes red instead:

screenshot showing inversion

VS Code seems to do this as well in the editor 🤔
screenshot showing inversion in VS code text file

...but its terminal does not
screenshot showing no inversion in VS Code terminal

@brunnerh brunnerh added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Nov 26, 2024
@lhecker
Copy link
Member

lhecker commented Nov 26, 2024

I suspect it depends on the font you're using:
Image

So, what font are you using and does it get fixed if you use a different one?

@lhecker lhecker added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Nov 26, 2024
@brunnerh
Copy link
Author

brunnerh commented Nov 26, 2024

I tried switching to a few fonts but the ones I picked did not seem to contain the character.
Don't know how to determine what the fallback in Windows Terminal is, but inspecting VS Code shows that Segoe UI Symbol is used for rendering there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants