Navigation Menu

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

emojis stop showing, starting a new kitty instance works #1650

Closed
geekodour opened this issue May 27, 2019 · 8 comments
Closed

emojis stop showing, starting a new kitty instance works #1650

geekodour opened this issue May 27, 2019 · 8 comments

Comments

@geekodour
Copy link

I am not sure how to reproduce this, but emojis suddenly stop showing and it works if I open new kitty instances. I've tried running reset but it does not seem to change anything.

Emojis not showing

Emojis showing

Any help on this?

@kovidgoyal
Copy link
Owner

By stop showing you mean they were showing and you do something and they render as lines? Or do you mean they dont show from the beginning in some kittyinstances but not others?

@kovidgoyal
Copy link
Owner

And post the output of kitty --debug-config

@kovidgoyal
Copy link
Owner

no followup

@geekodour
Copy link
Author

@kovidgoyal It didn't happen after that hence I was not able to post --debug-config output. I'll post it the next time it happens and I meant initially everything is working fine then for some unknown reason they become lines.

@kovidgoyal
Copy link
Owner

--debug-config does not have to be only when the issue occurs. It's just
for me to see what config you are using.

And the next time the issue occurs try changing the font size and see if
that restores the icons.

Also use --debug-font-fallback to get data on what fonts kitty is using
to draw the icons. I am guessing there is some font on yoursstem where
those icons are represented as lines.

@geekodour
Copy link
Author

Here is the log: http://dpaste.com/3S0WNJT.txt

and resizing the fonts did restore the emojis. thanks!

@kovidgoyal
Copy link
Owner

Run it with --debug-font-fallback and see if any output is produced when the emojis change, that should tell us is my theory about another font is correct.

@Luflosi
Copy link
Contributor

Luflosi commented May 29, 2019

When I'm running kitty without my config, I sort-of reliably get that line for most nerd font symbols.
Here is a screenshot of a git branch symbol in kitty with my config:
with
And with no config:
without
kitty prints

ValueError: Failed to find fallback CTFont other than the LastResort font

I have a big file with all the nerd font symbols in it. When I cat it in kitty without a config file, most of them are not rendered correctly (only as the weird line) and I get that error message above. Scrolling up and down and then catting the file again, makes all the newly printed symbols render correctly. --debug-font-fallback prints lines like

U+e0a0 Face(family=3270Medium Nerd Font Mono, full_name=3270-Medium Nerd Font Complete Mono, postscript_name=3270MediumNerdFontCompleteM-Medium, path=/Users/<username>/Library/Fonts/3270-Medium Nerd Font Complete Mono.otf, units_per_em=1000, ascent=8.9, descent=2.2, leading=0.0, point_sz=0.0, scaled_point_sz=11.0, underline_position=-1.4 underline_thickness=0.6)

I have attached the file here, maybe it helps.
nerd-fonts-test.txt

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

No branches or pull requests

3 participants