Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.32k stars 851 forks source link

Problems rendering certain Unicode glyphs #501

Open girst opened 5 years ago

girst commented 5 years ago

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.

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

Swordfish90 commented 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).

7HEPOW commented 5 years ago

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.

dessalines commented 5 years ago

I'm noticing this problem even using system fonts, where it does show up correctly using that same font in other terminals.

isaacclausen commented 9 months ago

I'm having this issue still. All the vertical bar glyphs have a protrusion on their right side