-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Issue rendering ➜ & ✔ glyphs #160
Comments
Thank you @icaromh for the bug report, yes I am aware of this bug (think was @ralgozino that mentioned in the discord channel). Glad that now we have a proper issue to track. Moved it to next release wishlist (0.0.15) 🙏 |
Yes, I can confirm is the same thing |
Now I'm not sure it was the same issue... 😆 This is my shell running I think the difference is that these are 2-width glyphs though (and they come from nerd fonts), should I open another issue? |
Was it cropping before as well right? |
It started cropping with the fix to #148 There's some improvement on |
Very interesting because I am not able to reproduce it, before at least for me the icons always have been rendered with 2x less width/height to fix 1 char width. Like the image below So my assumption was ➜ & ✔ glyphs were coming from unicode fonts instead of icons which was the case (at least for me) Which font/font-size are you using @ralgozino ? |
Would you mind share the configuration file? |
ah I got it, |
Because Rio is bundling the Nerd Font so you wouldn't need to have a font with nerd fonts patched, but it has been considering the icons aren't coming from a text font. |
Can you just check if you get same results using a system font (menlo, consolas for example)? (just for a sanity check) |
Gotcha, ok so logically make sense: sugarloaf is considering text font as text but it can happen to have icons that aren’t monospaced. This is something that needs a fix. regarding the small icons is a very tricky issue because iterm2 and terminal.app doesn’t follow strictly the ANSI rules regarding cells. Icons aren’t characters with width bigger than 1. kitty has same issue kovidgoyal/kitty#1463
Kitty has one valid approach around it. I think for now fix the renderer to understand glyph width and reposition to 1 cell. Then allow people to configure width of specific characters or fonts. So could say “I want all the icons as char-width 2”. But support icons as 2 cells for special unicode can’t be the default behaviour (only by configuration) |
@ralgozino can you test later using the branch dynamic-font-calculator? https://github.com/raphamorim/rio/tree/dynamic-font-calculator My guess is that it will not work (if doesn't add Mono in the end). works font = "FiraCode Nerd Font Mono" should not
after you confirm, I will add monospace as query in the font loader. |
is ➜ & ✔ glyphs ok? The problem is just the underline right? |
Hi @raphamorim here are some tests (from using using so, I'd say that the smaller glyphs problem is common to all the cases, but using I noticed that using The difference is evident in the comments, I think that Rio is not detecting the available features of the font. Italics and Underline work as expected in iTerm2. |
That's expected correctly, the smaller icons should be default behaviour until Rio has the configuration to allow it with char width 2. Regarding Victor Mono yes, I download yesterday and honestly everything looks weird. i will need to investigate that one tbh. |
the good thing is that glyphs are not being cut anymore 😄 🎉 |
Ok, I will close this one and open an issue regarding Victor Mono. Thanks @icaromh @ralgozino for reporting and testing. |
Hey 👋🏻
First of all, fantastic project.
I've been using ohmyz.sh with robbyrussell theme + Dracula colors.
And I faced some issues rendering the characters
➜
and✔
, they appear cropped. I've tried to change the terminal font sizing, without success.For reference, below is a screenshot comparing
iterm
vsrio
:Not sure, but it can be related to #135?
System:
The text was updated successfully, but these errors were encountered: