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

Wrong unicode character alignment #616

Open
TornaxO7 opened this issue Aug 28, 2024 · 7 comments
Open

Wrong unicode character alignment #616

TornaxO7 opened this issue Aug 28, 2024 · 7 comments

Comments

@TornaxO7
Copy link
Contributor

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
Copy link

VOID404 commented Aug 28, 2024

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

This comment was marked as outdated.

@VOID404
Copy link

VOID404 commented Aug 28, 2024

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

Repository owner deleted a comment Aug 28, 2024
Repository owner deleted a comment from ViniciusSCG Aug 28, 2024
@sharph
Copy link

sharph commented Sep 8, 2024

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
Copy link

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
Copy link

cvortmann commented Sep 30, 2024

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
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
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants