Skip to content

Different sizes of icons: symbol_map vs fallback #4670

Description

@anuvyklack

When I set icons explicitly with symbol_map, they are rendered much smaller than when kitty automatically set them with a fallback mechanism.

I am using kitty 0.24.2 and icons only nerd font: Symbols-2048-em Nerd Font Complete.ttf

Icons are set explicitly with:

# F655 : 
# E615 : 
# F0F6 : 
symbol_map U+F655,U+E615,U+F0F6 Symbols Nerd Font

With this settings I get

Screenshot-20220209205939-1480x64

When I comment out the snippet above and let kitty make all the job, I get

Screenshot-20220209205904-1494x64

I use Ubuntu 21.10.

kitty --debug-font-fallback output:

U+f655 italic Face(family=Symbols Nerd Font, style=2048-em,
ps_name=SymbolsNerdFontComplete-2048-em,
path=/home/anuvyklack/.local/share/fonts/Unknown Vendor/TrueType/Symbols Nerd Font/Symbols_Nerd_Font_2048_em.ttf,
index=0, is_scalable=True, has_color=False, ascender=1638, descender=-410, height=2048, underline_position=-306,
underline_thickness=102, strikethrough_position=530, strikethrough_thickness=102)

U+e615 italic Face(family=Symbols Nerd Font, style=2048-em,
ps_name=SymbolsNerdFontComplete-2048-em,
path=/home/anuvyklack/.local/share/fonts/Unknown Vendor/TrueType/Symbols Nerd Font/Symbols_Nerd_Font_2048_em.ttf,
index=0, is_scalable=True, has_color=False, ascender=1638, descender=-410, height=2048, underline_position=-306,
underline_thickness=102, strikethrough_position=530, strikethrough_thickness=102)

The same problem I have with Material Design Icons icons only font.

I read that when fallback kitty use fontconfig cache. My $HOME/.config/fontconfig directory is empty.
How to make font rendering uniform between these two cases? And if icons can be rendered bigger or smaller how can I control their size?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions