Open girst opened 5 years ago
Hi @girst... I'm able to reproduce these issues, and I think they are inherited from upstream. As you correctly assumed, CRT uses very tiny font sizes when using non-HD fonts, making these issues even more noticeable. It's indeed a bug, and not an easy one. For the moment I'd suggest you to use one of the HD fonts (or a system font).
Just to add a little more information just from looking at the font rendering: It seems like it's using always the same characters to draw boxes. All vertical lines have those notches even when using system fonts that include proper box characters, some internal characters seem to be used or maybe even a fallback font. Here's an example using Pet Me 128 Medium: Screenshots Upper shot is on Tilix (also works in Terminator/xfce4-terminal/etc.) and lower shot is in CRT. I tried all fonts on my system all leading to the same result. Misalignment happens with some, but not all fonts.
I'm noticing this problem even using system fonts, where it does show up correctly using that same font in other terminals.
I'm having this issue still. All the vertical bar glyphs have a protrusion on their right side
Hi, I'm working on some terminal games that make extensive use of niche Unicode characters from e.g. the Box-drawing and [Full-width forms]() blocks. Sadly, they don't render correctly in crt.
╎
vs│
)It looks like not all the glyphs from this block are in the supplied fonts (checked Terminus), so another will be used as fallback. All other terminal emulators I've encountered don't rely on the font specified glyph width, but align characters in a grid themselves.
all vertical bar glyphs have a protrusion on their right side. This affects all fonts, but in different intensity.
full-width chars are supposed to have the same width as han (chinese/japanese/korean) chars, making them take twice as wide as 'normal' characters in a terminal. crt adds space (depending on the font negative space) between them and box drawing characters.
These might be problems in qTermWidget that just manifest in crt due to its special configuration. I've only managed to reproduce the third bug (but not 1 and 2) in qTerminal that also uses qTermWidget, so that's why I've decided to open this BR here first. Oh, and of course a big Thank You for making this awesome program!
Attached is the UTF-8 encoded testfile and screenshots I've made of crt and gnome-terminal crt-alignment-demo foo.txt