Skip to content

Some fonts appear shifted down #1173

Closed
Closed
@occivink

Description

@occivink

OS: ubuntu 18.04
Kitty version: built from master, a7a7216
Kitty config: none

https://0x0.st/s0VB.png
As you can see on the cursor, the bracket character is not centered vertically.
edit: This seems to be because the Ubuntu Mono font is setup like that. Somehow alacritty renders it centered, which made me think that this was an issue on kitty's side. The following still applies:

If I add the following to my ~/.config/fontconfig/fonts.conf:

<edit mode="assign" name="hinting">
    <bool>false</bool>
</edit>

https://0x0.st/s0Va.png
The characters are shifted even more, so much so that they get clipped.

This does not seem to happen with all fonts, I could reproduce it with Ubuntu Mono (screenshots), Noto Mono but not Fantasque Sans Mono, for example. My fonts are not patched, they're the default system ones.

I can alleviate this somewhat with adjust_line_height but I cannot achieve proper centering with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions