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

Potential weirdness with non-text characters #237

Open
leviport opened this issue Feb 23, 2024 · 4 comments
Open

Potential weirdness with non-text characters #237

leviport opened this issue Feb 23, 2024 · 4 comments
Milestone

Comments

@leviport
Copy link
Member

I've seen a few instances of spacing and alignment weirdness in cosmic-term and cosmic-edit with non-text characters. The easiest way to show this is in typeracer in the screenshot below, where you can see the border has gaps at the corners of the text boxes. Comparing it to kgx or another terminal, the text boxes don't have gaps.

screenshot-2024-02-23-16-32-47

I've also seen instances of btop get messed up alignment because of the bullet point character it prints in its usage meters, but I don't have a screenshot of this at this time.

@jackpot51
Copy link
Member

I believe the btop issue is due to incorrect width calculation of braille fonts. @MoSal do you have ideas on this?

@MoSal
Copy link
Contributor

MoSal commented Feb 23, 2024

Gave typeracer a test (it's this one btw).

cosmic-text is falling back to "Nimbus Mono PS" for some glyphs, and "JetBrains Mono" for others.

Changing font settings to "JetBrains Mono" makes the issue go away.

The Nimbus font comes from the gsfonts package which is required by graphviz and libwmf (a dependency of gimp).

Maybe at some point, setting a first fallback choice should be implemented and exposed as a user setting, hoping it wouldn't prove to be a slippery slope (users requesting 2nd, 3rd, 4th,... fallback choices).

@MoSal
Copy link
Contributor

MoSal commented Feb 23, 2024

As for Braille chars, I didn't try it, but according to pop-os/cosmic-term#66, to guarantee correct rendering, a Monospace font with braille support is required (Iosevka was mentioned), and making sure font-weight is set to a value supported by such a font.

@Morriarthy
Copy link

screenshot-2024-05-21-16-35-40
The screenshot shows kitty and the cosmic terminal both running btop. - Is it known that for example btop looks a little messed up when compared to kitty?

@WatchMkr WatchMkr added this to the alpha 2 milestone May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Alpha 2
Development

No branches or pull requests

5 participants