raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
3.77k stars 121 forks source link

Wrong unicode character alignment #616

Open TornaxO7 opened 2 months ago

TornaxO7 commented 2 months ago

Rio isn't displaying the lines from a TUI-file manager correctly: image

This is how it looks like in alacritty:

image

Reproduction steps

  1. Install yazi
  2. Open it up by executing yazi
  3. See the results
VOID404 commented 2 months ago

echo "│\n│\n│" is enough to reproduce for me. Seems like it's rendering the lines as semi-transparent, and overlap makes it darker.

TornaxO7 commented 2 months ago

Stupid bots

peepoRage

VOID404 commented 2 months ago

@qiliq could you link the other issue? Does it describe actual solution? The link seems to be for windows :/

sharph commented 2 months ago

Screenshot from 2024-09-08 15-39-54

I am seeing alignment issues with block characters. Font is Victor Mono Nerd Font. Left is rio and right is kitty for comparison.

wulfalpha commented 1 month ago

image I have the Same issue I think. It causes black lines above my powerline prompt as well as dark lines to appear in my shiny charizard.

cvortmann commented 1 month ago

I have the similar issue using lualine on Neo Vim in MacOs.

Top is Alacritty, bottom is Rio. Font is SF Mono for Powerline.

Screenshot 2024-09-30 at 15 09 46

It also shows the Nerd Font icons from starship.rs differently. Again, Alacritty top, Rio bottom:

Screenshot 2024-09-30 at 15 33 01 Screenshot 2024-09-30 at 15 33 23

Rio config ```toml theme = 'catppuccin-mocha' padding-x = 1 padding-y = [1, 1] option-as-alt = 'both' [fonts] family = "SF Mono Powerline" size = 13 [fonts.regular] family = "SF Mono Powerline" style = "Normal" weight = 600 [fonts.emoji] family = "Apple Color Emoji" style = "Normal" [navigation] use-current-path = true mode = "NativeTab" [renderer] performance = "High" backend = "Metal" disable-unfocused-render = false [window] decorations = "Enabled" ```
Rio Version ``` ❯ rio --version rioterm 0.1.16 ```
raphamorim commented 1 month ago

Yes, sorry about that. The issue is that Rio isn’t resizing the other fonts to respect the dimensions of the main font. I plan to work on that after finish the split support #691 (which I am currently working on)