-
Notifications
You must be signed in to change notification settings - Fork 888
RadioButton unicode circle display has a line through it #5721
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
Comments
The problem is that the circle glyph used for the radio button is missing in your terminal font - see #3091 Try a different terminal emulator or changing your terminal font to something with better Unicode support, such as |
It renders the circle glyph with no issue when |
closing this, I suppose its a Ubuntu feature not a bug |
The issue seems to be that Gnome terminal is rendering that glyph too wide. Having one cell overlap with a subsequent cell just shouldn't happen. So I think the fault lies with GT. But I don't like to pass the buck with such things. Even if Gnome fix it, it will be a long time before every user gets the update. So finding a workaround is desirable. Unfortunately we can't make that change, as it would break the output on other terminals. Here are some alternative options as I see it. Find an alternative glyph that happens to work across all terminals, and looks good. |
The problem is there isn't any glyph that will work across all terminals. It really depends on the terminal font and the font fallback for missing glyphs. For example, there's countless issues about how Textual looks in the old Windows conhost, because it doesn't have any font fallback. The problem with the GNOME Terminal in Ubuntu is that its default monospace font (Ubuntu Mono) has limited Unicode support and its font fallback causes glyphs to overlap. If you change the terminal font to something with better Unicode support like DejaVu Sans Mono (which I think is the default terminal font in Fedora), then Textual will render much better. |
The bug
Issue: When using RadioButton in a RadioSet, the toggle glyph (●) renders with a visible horizontal line through it, making it appear broken or misaligned.
Environment: Ubuntu 22.04.5 LTS using the default GNOME Terminal.
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: