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

Font rendering in kitty is different from system's rendering #47

Closed
tiberiuichim opened this issue Feb 9, 2017 · 4 comments
Closed

Comments

@tiberiuichim
Copy link

tiberiuichim commented Feb 9, 2017

I'm using ArchLinux with Plasma 5.9 and I've attached a screenshot from Yakuake, a terminal that uses the Konsole engine. My problem is that the characters are too spaced out and fuzzy.

Left side is Kitty (installed from yaourt -S kitty-git), right side is Yakuake

kitty-to-yakuake

@kovidgoyal
Copy link
Owner

What font is this?

fc-match monospace

@tiberiuichim
Copy link
Author

LiberationMono-Regular.ttf: "Liberation Mono" "Regular"

But I've configured it to use "Cousine for Powerline", both terminals use the same font

@tiberiuichim
Copy link
Author

This is a screenshot with just monospace

kitty-monospace

@kovidgoyal
Copy link
Owner

kitty calculates cell width by querying the sizes of all the ascii characters and taking the maximum width from that. See calc_cell_width() in freetype.py. I'm guessing it is because these fonts are not properly monospaced. Probably the underscore character is wider than all the other. You can stick a print statement in that function to confirm.

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

2 participants