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

Missing glyphs (⎛, ⎞, ⎝, ⎠, and ⋅) cause apparent alignment issue in SageMath with unicode_art in Cool Retro Term #88

Open
kaimers opened this issue Feb 23, 2021 · 8 comments
Labels

Comments

@kaimers
Copy link

kaimers commented Feb 23, 2021

0
1
Problem seen in QTerminal too, which is also based on KDE4 Konsole derived qtermwidget, but not in KDE5 Konsole or Gnome Terminal.
Other font that has this problem are Inconsolata and Ubuntu Mono, but the same problem does not appear with font Andale Mono, Courier, Fira Code or Source Code Pro.

@rbanffy rbanffy added the bug label Feb 23, 2021
@rbanffy
Copy link
Owner

rbanffy commented Feb 23, 2021

I think those glyphs are missing. Can you paste the screen text to speed things up? I don't think I have Sage here.

Never mind. Got it.

@rbanffy rbanffy changed the title Apparent alignment issue in SageMath with unicode_art in Cool Retro Term Missing glyphs (⎛, ⎞, ⎝, ⎠) cause apparent alignment issue in SageMath with unicode_art in Cool Retro Term Feb 23, 2021
@rbanffy rbanffy added the Missing glyph Used when the issue being reported is about a missing glyph that'd be useful to have. label Feb 23, 2021
@rbanffy
Copy link
Owner

rbanffy commented Feb 23, 2021

It is a missing glyph issue, but it doesn't happen on a Mac (at least not with Terminal.app)
image

This may indicate an issue with the fallback font in your system.

Regardless of that, the glyphs are missing and that should be fixed.

@kaimers
Copy link
Author

kaimers commented Feb 23, 2021

It is a missing glyph issue, but it doesn't happen on a Mac (at least not with Terminal.app)
image

This may indicate an issue with the fallback font in your system.

Regardless of that, the glyphs are missing and that should be fixed.

I don't think it necessarily has to do with fallback font in my system.

I just checked for various fonts that don't work, and they seem to be wrong in different ways, e.g. Fixedsys Excelsior. And as described in issue, the font works perfectly on Gnome Terminal and KDE5 Terminal.

I believe on the other side there's some thing missing in KDE4's QTermWidget which is used by both QTerminal and Cool Retro Term, but I don't know enough about this to make a guess.

2

@kaimers
Copy link
Author

kaimers commented Feb 24, 2021

@rbanffy You could have been right about the fallback font. I just checked Fixedsys Excelsior and the glyphs involved are included in that font even though it has problems. Still strange how I don't have problem with other terminal emulators though.

@kaimers
Copy link
Author

kaimers commented Feb 24, 2021

@rbanffy You could have been right about the fallback font. I just checked Fixedsys Excelsior and the glyphs involved are included in that font even though it has problems. Still strange how I don't have problem with other terminal emulators though.

Maybe the other terminals just render in grids while KDE4's QTermWidget don't do that. And when you fallback to font with different size (which is probably always the case) the problem naturally arises.

@rbanffy
Copy link
Owner

rbanffy commented Feb 24, 2021

Found something interesting (we'll have to pass this, maybe, to the QTermWidget team). Note how the parentheses components mismatch below:
image
Now note how they mismatch after I select the '⋅' glyph on the second line:
image
And, if I select more:
image

(added capture, Mac running X server, Linux laptop running Konsole):

konsole-misalignment.mov

It doesn't happen when Konsole uses the default font. Can you check it with the other fonts you mentioned, @kaimers?

@rbanffy
Copy link
Owner

rbanffy commented Feb 25, 2021

Reported it at https://bugs.kde.org/show_bug.cgi?id=433604

@kaimers
Copy link
Author

kaimers commented Feb 25, 2021

@rbanffy I did tests on QTerminal and KDE 5's Konsole.

KDE 5's Konsole: No alignment issue with either IBM 3270 or Fira Code.
QTerminal: Problem reproduced with IBM 3270 but not with Fira Code or Source Code Pro.

The behavior in your capture is really weird but I don't think KDE is in charge of QTermWidget, it seems to be maintained by LXQt(https://github.com/lxqt/qtermwidget)

@rbanffy rbanffy changed the title Missing glyphs (⎛, ⎞, ⎝, ⎠) cause apparent alignment issue in SageMath with unicode_art in Cool Retro Term Missing glyphs (⎛, ⎞, ⎝, ⎠, and ⋅) cause apparent alignment issue in SageMath with unicode_art in Cool Retro Term Mar 7, 2021
@rbanffy rbanffy removed the Missing glyph Used when the issue being reported is about a missing glyph that'd be useful to have. label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants