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

Chinese characters too small #4707

Closed
skysky97 opened this issue Feb 14, 2022 · 6 comments
Closed

Chinese characters too small #4707

skysky97 opened this issue Feb 14, 2022 · 6 comments
Labels

Comments

@skysky97
Copy link

skysky97 commented Feb 14, 2022

Describe the bug
Chinese characters are much more smaller than those in gnome-terminal.

Screenshots
IMG_20220214_142347
IMG_20220214_142308

Environment details
kitty 0.24.1 (2151969) created by Kovid Goyal
Linux ubuntu 5.4.0-26-generic

Additional context
Try to reproduce the problem with kitty --config NONE, the same problem.

@skysky97 skysky97 added the bug label Feb 14, 2022
@kovidgoyal
Copy link
Owner

How big they are depends on the font used for them. Pick a different
font for chinese characters using the symbol_map directive in
kitty.conf, or using fontconfig.

@skysky97
Copy link
Author

I have only 'noto' font installed. I don't know which font gnome-terminal actually used. Can you help me? @kovidgoyal

@kovidgoyal
Copy link
Owner

If its the same font then its most likely that gnome terminal is rendering it at a higher font size. kitty scales fallback fonts so that their reported height fits within the cell height. You can try using adjust_line_height in kitty.conf to increasethe cell height.

@skysky97
Copy link
Author

Increasing the cell height does help. But it wastes some space...

@page-down
Copy link
Contributor

I can reproduce the issue.

Some (e.g. Noto) two character width fonts used with mono fonts (e.g. Hack, the OS default one) are particularly small at standard font size (e.g. font_size=10).
Although it seems to have a very sufficient height.

The font combination works fine in Konsole, filling the entire line height.
I don't have this problem in macOS, it is pretty well filled.

@kovidgoyal
Copy link
Owner

Yeah, there isn't much that can be done about that, essentially one would
need to fine tune the metrics of the involved fonts to make them more
compatible. In theory I could add a config parameter to do this in
kitty, maybe some rainy day.

@kovidgoyal kovidgoyal reopened this Feb 15, 2022
wangzqbj added a commit to wangzqbj/config that referenced this issue Feb 21, 2022
since kovidgoyal/kitty#4707 is merged

Signed-off-by: John Wang <wangzq.jn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants