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
Sometimes unicode symbols are not displayed #799
Comments
I've had this too. I use DejaVu sans mono and most of the time the symbols render fine, but very occasionally it doesn't happen. |
Use the --debug-font-fallback option to get information about what fonts are used to render symbols not present in the main font (although I dont recall how well that option is implemented on macOS). Still it might give something useful. |
Oh and note that you can tell kitty exactly which font you want it to use for a particular symbol via symbol_map in kitty.conf |
Yeah I know that, but these symbols are in the font & gets rendered already sometimes. That's the problem; it's a bit random. Sometimes they work, sometimes not. I'm not even sure if it's a fallback font issue, since they render fine with all the fonts I listed in multiple terminal emulators For example in Iosevka's Here is the output of
|
I need the debug output from a time when it doesn't render fine. |
Here is a debug output when this happened
and a screenshot showing a missing glyph And this is the font-family I was using
|
That shows it is indeed a fallback issue, cocoa is returning the "Last Resort" font for the U+e0a0 symbol. That font always renders as a question mark. U+e0a0 is a private use symbol https://www.fileformat.info/info/unicode/char/e0a0/index.htm so it will not be present in normal fonts. What font on your system has this symbol? For private use unicode codepoints you really should use symbol_map -- that's what it's designed for. Otherwise what rendering your get for it is not determined by any standard and depends on what order the ystem searches fonts for it. |
That symbol is in Iosevka but that was not the only symbol there were also |
This still happens. Suddently all weird unicode characters are gone. Restarting kitty doesn't help. At some point things go back to normal, but I can't find the cause. |
I'm having the same issue as well - although I think mine is slightly complicated by the fact that I'm using PragmataPro Mono (which doesn't support nerd font glyphs). Sometimes, they render correctly - sometimes they don't. Is there a way to force a fallback? I'm don't know much about this. Edit: interesting twist on this - I'm using |
Sometimes I end up with characters like this in my prompt
And it happens quite randomly sometimes it renders, sometimes not, I tried several fonts too:
Here are the symbols I use https://github.com/ahmedelgabri/dotfiles/blob/ef31ad9d2ad052e1901f8c406a22948f4f43d701/zsh/.zshrc#L139-L150
They all work in iTerm & alacritty fine.
The text was updated successfully, but these errors were encountered: